Compartir a través de


Property.NumIndices (Propiedad)

Obtiene el número de índices necesario para obtener acceso al valor.

Espacio de nombres:  EnvDTE
Ensamblado:  EnvDTE (en EnvDTE.dll)

Sintaxis

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

Valor de propiedad

Tipo: System.Int16
Entero corto que representa el número de índices necesario para obtener acceso al valor.

Comentarios

Los argumentos válidos para IndexedValue son de 1 al valor devuelto por la propiedad NumIndices, inclusive.

Ejemplos

' 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

Seguridad de .NET Framework

Vea también

Referencia

Property Interfaz

EnvDTE (Espacio de nombres)