Share via


DataConnectionProperties.TryGetValue(String, Object) Method

Definition

Retrieves the value of the specified property.

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

Parameters

key
String

The property name to retrieve the value for.

value
Object

When this method returns, contains the value that corresponds to the specified property. This parameter is passed uninitialized.

Returns

true if the property is found; otherwise, false.

Exceptions

The key parameter is null.

Applies to