Partager via


Property.NumIndices, propriété

Obtient le nombre d'index requis pour accéder à la valeur.

Espace de noms :  EnvDTE
Assembly :  EnvDTE (dans EnvDTE.dll)

Syntaxe

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

Valeur de propriété

Type : System.Int16
Entier court représentant le nombre d'index requis pour accéder à la valeur.

Notes

Les arguments autorisés pour IndexedValue sont compris entre 1 et la valeur retournée par la propriété NumIndices, incluse.

Exemples

' 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

Sécurité .NET Framework

Voir aussi

Référence

Property Interface

EnvDTE, espace de noms