Property::NumIndices Property
Visual Studio 2015
Gets the number of indices required to access the value.
Assembly: EnvDTE (in EnvDTE.dll)
Property Value
Type: System::Int16A short integer representing the number of indices required to access the value.
The valid arguments to the IndexedValue are 1 through the return value from the NumIndices property, inclusive.
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
Show: