Property.NumIndices 屬性
取得存取值所需要的索引數目。
命名空間: EnvDTE
組件: EnvDTE (在 EnvDTE.dll 中)
語法
'宣告
ReadOnly Property NumIndices As Short
short NumIndices { get; }
property short NumIndices {
short get ();
}
abstract NumIndices : int16 with get
function get NumIndices () : short
屬性值
類型:Int16
代表存取值所需要之索引數目的短整數 (Short Integer)。
備註
IndexedValue 的有效引數為 1 至 NumIndices 屬性的傳回值 (含)。
範例
' Visual Studio macro.
Sub NumIndicesExample()
Dim Props As Properties
Dim PropObj As [Property]
Dim NameValPair As String
Props = DTE.Properties("Environment", "General")
MsgBox("Tools – Options – Environment – General Properties Count _
= " & Props.Count())
For Each PropObj In Props
NameValPair = NameValPair & (PropObj.Name & "Value = " & _
PropObj.Value & microsoft.VisualBasic.ControlChars.CrLf)
Next
MsgBox(NameValPair)
MsgBox("NumIndices value: " & PropObj.NumIndices)
End Sub
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。