Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets the value associated with the specified key.
Namespace: Microsoft.VisualStudio.GraphModel
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
Public Function TryGetValue ( _
key As String, _
<OutAttribute> ByRef value As String _
) As Boolean
public bool TryGetValue(
string key,
out string value
)
public:
virtual bool TryGetValue(
String^ key,
[OutAttribute] String^% value
) sealed
abstract TryGetValue :
key:string *
value:string byref -> bool
override TryGetValue :
key:string *
value:string byref -> bool
public final function TryGetValue(
key : String,
value : String
) : boolean
Parameters
key
Type: System.StringThe key whose value to obtain.
value
Type: System.String%When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.
Return Value
Type: System.Boolean
True if the object that implements System.Collections.Generic.IDictionary contains an element that has the specified key; otherwise, false.
Implements
IDictionary<TKey, TValue>.TryGetValue(TKey, TValue%)
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | key is null. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.