Export (0) Print
Expand All
ID
Top
Expand Minimize

NumIndices Property

Visual Studio .NET 2003

Returns the number of indices required to access the value.

[Visual Basic .NET]
Public ReadOnly Property NumIndices() As Short
[Visual Basic 6]
Property Get NumIndices() As Integer
[C++]
HRESULT __stdcall get_NumIndices(
   /* [out, retval] */ short* retVal
);
[C#]
public short NumIndices {get;}
[JScript .NET]
public function get NumIndices() : short

Remarks

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

Example

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

See Also

IndexedValue Property

Applies To: Property Object

Show:
© 2015 Microsoft