DataConnectionProperties.TryGetValue Method
Retrieves the value of the specified property.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'Declaration
Public Function TryGetValue ( _
key As String, _
<OutAttribute> ByRef value As Object _
) As Boolean
public bool TryGetValue(
string key,
out Object value
)
public:
virtual bool TryGetValue(
String^ key,
[OutAttribute] Object^% value
) sealed
abstract TryGetValue :
key:string *
value:Object byref -> bool
override TryGetValue :
key:string *
value:Object byref -> bool
public final function TryGetValue(
key : String,
value : Object
) : boolean
Parameters
- key
Type: System.String
The property name to retrieve the value for.
- value
Type: System.Object%
When this method returns, contains the value that corresponds to the specified property. This parameter is passed uninitialized.
Return Value
Type: System.Boolean
true if the property is found; otherwise, false.
Implements
IDictionary<TKey, TValue>.TryGetValue(TKey, TValue%)
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The key parameter is nulla null reference (Nothing in Visual Basic). |
.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.