Property.NumIndices Propriedade

Definição

Obtém o número de índices necessários para acessar o valor.

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

Valor da propriedade

Int16

Um inteiro curto que representa o número de índices necessários para acessar o valor.

Atributos

Exemplos

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  

Comentários

Os argumentos válidos para IndexedValue[] são 1 por meio do valor de retorno da NumIndices propriedade, inclusive.

Aplica-se a