Freigeben über


Property.NumIndices-Eigenschaft

Ruft die für den Zugriff auf den Wert erforderliche Anzahl von Indizes ab.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

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

Eigenschaftswert

Typ: System.Int16
Eine kurze ganze Zahl, die die für den Zugriff auf den Wert erforderliche Anzahl von Indizes darstellt.

Hinweise

Die zulässigen Argumente für IndexedValue lauten 1 bis einschließlich des Rückgabewerts der NumIndices-Eigenschaft.

Beispiele

' 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-Sicherheit

Siehe auch

Referenz

Property Schnittstelle

EnvDTE-Namespace