Partager via


PropertyCollection.GetProperty, méthode (Object)

Obtient la propriété associée à la clé spécifiée.

Espace de noms :  Microsoft.VisualStudio.Utilities
Assembly :  Microsoft.VisualStudio.CoreUtility (dans Microsoft.VisualStudio.CoreUtility.dll)

Syntaxe

'Déclaration
Public Function GetProperty ( _
    key As Object _
) As Object
public Object GetProperty(
    Object key
)
public:
Object^ GetProperty(
    Object^ key
)
member GetProperty : 
        key:Object -> Object
public function GetProperty(
    key : Object
) : Object

Paramètres

  • key
    Type : Object

    Clé.

Valeur de retour

Type : Object
La valeur de propriété, ou nullune référence null (Nothing en Visual Basic) si la propriété n'est pas définie.

Exceptions

Exception Condition
ArgumentNullException

key a la valeur nullune référence null (Nothing en Visual Basic).

KeyNotFoundException

key n'existe pas dans la collection de propriété.

Sécurité .NET Framework

Voir aussi

Référence

PropertyCollection Classe

GetProperty, surcharge

Microsoft.VisualStudio.Utilities, espace de noms