VBFixedStringAttribute 构造函数

更新:2007 年 11 月

初始化 SizeConst 字段的值。

Public Sub New( _
   ByVal Length As Integer _
)

参数

  • Length
    固定字符串的长度。

备注

该构造函数在 VBFixedStringAttribute 属性应用于字符串时运行。

智能设备开发人员说明

不支持此构造函数。

要求

命名空间:Microsoft.VisualBasic

**类:**VBFixedStringAttribute

**程序集:**Visual Basic 运行库(在 Microsoft.VisualBasic.dll 中)

请参见

概念

Visual Basic 中使用的属性

对象生存期:如何创建和销毁对象

参考

VBFixedStringAttribute 类

StringBuilder

MarshalAsAttribute

其他资源

Visual Basic 中的属性 (Attribute)