Property.NumIndices プロパティ
更新 : 2007 年 11 月
値にアクセスするために必要なインデックスの数を取得します。
名前空間 : EnvDTE
アセンブリ : EnvDTE (EnvDTE.dll 内)
構文
'宣言
ReadOnly Property NumIndices As Short
'使用
Dim instance As [Property]
Dim value As Short
value = instance.NumIndices
short NumIndices { get; }
property short NumIndices {
short get ();
}
function get NumIndices () : short
プロパティ値
型 : System.Int16
値にアクセスするために必要なインデックスの数を表す短整数。
解説
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
アクセス許可
- 直前の呼び出し元に対する完全な信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。