Condividi tramite


Proprietà Property.NumIndices

Ottiene il numero di indici obbligatorio per accedere al valore.

Spazio dei nomi:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Sintassi

'Dichiarazione
ReadOnly Property NumIndices As Short
short NumIndices { get; }
property short NumIndices {
    short get ();
}
abstract NumIndices : int16
function get NumIndices () : short

Valore proprietà

Tipo: System.Int16
Un valore short Integer che rappresenta il numero di indici obbligatori per accedere al valore.

Note

Gli argomenti validi a IndexedValue è 1 e il valore restituito da NumIndices proprietà, inclusa.

Esempi

' 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

Sicurezza di .NET Framework

Vedere anche

Riferimenti

Property Interfaccia

Spazio dei nomi EnvDTE