Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the number of indices required to access the value.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
ReadOnly Property NumIndices As Short
short NumIndices { get; }
property short NumIndices {
short get ();
}
abstract NumIndices : int16
function get NumIndices () : short
Property Value
Type: System.Int16
A short integer representing the number of indices required to access the value.
Remarks
The valid arguments to the IndexedValue are 1 through the return value from the NumIndices property, inclusive.
Examples
' 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 Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.