Share via


Property.NumIndices Property

Definition

Gets the number of indices required to access the value.

public:
 property short NumIndices { short get(); };
public:
 property short NumIndices { short get(); };
[System.Runtime.InteropServices.DispId(4)]
public short NumIndices { [System.Runtime.InteropServices.DispId(4)] get; }
[<System.Runtime.InteropServices.DispId(4)>]
[<get: System.Runtime.InteropServices.DispId(4)>]
member this.NumIndices : int16
Public ReadOnly Property NumIndices As Short

Property Value

A short integer representing the number of indices required to access the value.

Attributes

Examples

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  

Remarks

The valid arguments to the IndexedValue[] are 1 through the return value from the NumIndices property, inclusive.

Applies to