VBFixedStringAttribute.Length 屬性
取得字串的長度。
命名空間: Microsoft.VisualBasic
組件: Microsoft.VisualBasic (在 microsoft.visualbasic.dll 中)
語法
'宣告
Public ReadOnly Property Length As Integer
'用途
Dim instance As VBFixedStringAttribute
Dim value As Integer
value = instance.Length
public int Length { get; }
public:
property int Length {
int get ();
}
/** @property */
public int get_Length ()
public function get Length () : int
屬性值
傳回字串的長度。
備註
如需詳細資訊,請參閱 Visual Basic 的主題 VBFixedStringAttribute.Length 屬性。
當 VBFixedStringAttribute 套用至字串時,該屬性 (Attribute) 的建構函式會設成此屬性 (Property)。
平台
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 命名空間
其他資源
VBFixedStringAttribute.Length 屬性
Visual Basic 中的屬性
VBFixedStringAttribute 類別
Visual Basic 所用的屬性