Partilhar via


AdoDotNetConnectionProperties.TryGetValue(String, Object) Method

Definition

Retrieves a value corresponding to the supplied key by calling this method on the .NET Framework connection string builder base class (DbConnectionStringBuilder).

public:
 virtual bool TryGetValue(System::String ^ key, [Runtime::InteropServices::Out] System::Object ^ % value);
public virtual bool TryGetValue (string key, out object value);
abstract member TryGetValue : string * obj -> bool
override this.TryGetValue : string * obj -> bool
Public Overridable Function TryGetValue (key As String, ByRef value As Object) As Boolean

Parameters

key
String

The property name to be retrieved.

value
Object

Output parameter. Contains the value of the property, if the property exists.

Returns

true if the property is found; otherwise, false.

Applies to