Used to declare fixed-sized strings.
<System.AttributeUsage(System.AttributeTargets.Field, _ Inherited := False, AllowMultiple := False)> _ Public NotInheritable Class VBFixedStringAttribute Inherits System.Attribute
Visual Basic .NET strings are of variable length by default. This attribute is useful when using Visual Basic .NET file input and output functions, such as FileGet and FilePut that require fixed length strings.
Structure Person Public ID As Integer Public MonthlySalary As Decimal Public LastReviewDate As Long <VBFixedString(15)> Public FirstName As String <VBFixedString(15)> Public LastName As String <VBFixedString(15)> Public Title As String <VBFixedString(150)> Public ReviewComments As String End Structure