Property.NumIndices Property

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 with get
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

See Also

Reference

Property Interface

EnvDTE Namespace