VBFixedStringAttribute 建構函式
初始化 SizeConst 欄位值。
命名空間: Microsoft.VisualBasic
組件: Microsoft.VisualBasic (在 microsoft.visualbasic.dll 中)
語法
'宣告
Public Sub New ( _
Length As Integer _
)
'用途
Dim Length As Integer
Dim instance As New VBFixedStringAttribute(Length)
public VBFixedStringAttribute (
int Length
)
public:
VBFixedStringAttribute (
int Length
)
public VBFixedStringAttribute (
int Length
)
public function VBFixedStringAttribute (
Length : int
)
參數
- Length
固定字串的長度。
備註
如需詳細資訊,請參閱 Visual Basic 的主題 VBFixedStringAttribute 建構函式。
當 VBFixedStringAttribute 屬性套用到字串中時,會執行此建構函式。
平台
Windows 98、 Windows 2000 SP4、 Windows CE、 Windows Millennium Edition、 Windows Mobile for Pocket PC、 Windows Mobile for Smartphone、 Windows Server 2003、 Windows XP Media Center Edition、 Windows XP Professional x64 Edition、 Windows XP SP2、 Windows XP Starter Edition
.NET Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱系統需求一節的內容。
版本資訊
.NET Framework
支援版本:2.0、1.1、1.0
.NET Compact Framework
支援版本:2.0、1.0
請參閱
參考
VBFixedStringAttribute 類別
VBFixedStringAttribute 成員
Microsoft.VisualBasic 命名空間
StringBuilder Class
MarshalAsAttribute Class
其他資源
VBFixedStringAttribute 建構函式
Visual Basic 中的屬性
VBFixedStringAttribute 類別
Visual Basic 所用的屬性
物件存留期:物件的建立和終結