共用方式為


DataConnectionProperties.GetValueAsString(String) Method

Definition

Formats a property value for placement in a connection string.

protected:
 virtual System::String ^ GetValueAsString(System::String ^ key);
protected virtual string GetValueAsString (string key);
abstract member GetValueAsString : string -> string
override this.GetValueAsString : string -> string
Protected Overridable Function GetValueAsString (key As String) As String

Parameters

key
String

The name of a property to be formatted.

Returns

The value of the specified property in a string format suitable for placement in a connection string.

Exceptions

The key parameter is null.

Applies to