AdoDotNetConnectionProperties.TryGetValue Method
Retrieves a value corresponding to the supplied key by calling this method on the .NET Framework connection string builder base class (DbConnectionStringBuilder).
Namespace: Microsoft.VisualStudio.Data.Framework.AdoDotNet
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'Declaration
Public Overridable Function TryGetValue ( _
key As String, _
<OutAttribute> ByRef value As Object _
) As Boolean
public virtual bool TryGetValue(
string key,
out Object value
)
public:
virtual bool TryGetValue(
String^ key,
[OutAttribute] Object^% value
)
abstract TryGetValue :
key:string *
value:Object byref -> bool
override TryGetValue :
key:string *
value:Object byref -> bool
public function TryGetValue(
key : String,
value : Object
) : boolean
Parameters
- key
Type: System.String
The property name to be retrieved.
- value
Type: System.Object%
Output parameter. Contains the value of the property, if the property exists.
Return Value
Type: System.Boolean
true if the property is found; otherwise, false.
Implements
IDictionary<TKey, TValue>.TryGetValue(TKey, TValue%)
.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.