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 : ObjectClé.
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
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, voir Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.