Property.NumIndices Eigenschaft

Definition

Ruft die Anzahl der Indizes ab, die für den Zugriff auf den Wert erforderlich sind.

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

Eigenschaftswert

Int16

Ein Short Integer-Wert, der die Anzahl der Indizes darstellt, die für den Zugriff auf den Wert erforderlich sind.

Attribute

Beispiele

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  

Hinweise

Die gültigen Argumente für den IndexedValue[] sind 1 bis zum Rückgabewert der- NumIndices Eigenschaft (einschließlich).

Gilt für