Propriedade Property.NumIndices

Obtém o número de índices exigidos para acessar o valor.

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

Sintaxe

'Declaração
ReadOnly Property NumIndices As Short
short NumIndices { get; }
property short NumIndices {
    short get ();
}
abstract NumIndices : int16
function get NumIndices () : short

Valor de propriedade

Tipo: System.Int16
Um inteiro curto que representa o número de índices exigidos para acessar o valor.

Comentários

Os argumentos válidos para o IndexedValue são de 1 até o valor de retorno de NumIndices propriedade, inclusive.

Exemplos

' 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

Segurança do .NET Framework

Consulte também

Referência

Property Interface

Namespace EnvDTE