Name
VBFixedString Attribute — Microsoft.VisualBasic.VBFixedStringAttribute
Synopsis
Applies to
Field
Description
Defines a fixed-length string. It is the rough equivalent of the VB 6 declaration:
Dim s As String * length
It can be used to define fixed-length strings within structures, particularly structures that are to be passed to Win32 API functions, as well as to define fixed-length strings to be written to and read from random access files.
Constructor
New(length
)
length
IntegerThe length of the string
Properties
- Length Integer
Read-only. The length of the string. Its value is set by the
length
parameter in the class constructor.
Get VB.NET Language Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.