Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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: StringThe key whose value to obtain.
value
Type: 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: Boolean
True if the object that implements System.Collections.Generic.IDictionary contains an element that has the specified key; otherwise, false.
Implements
IDictionary.TryGetValue(UTP, UTP)
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.