DataConnectionProperties.GetNameAsString Method

Formats a property name for placement in a connection string.

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'宣言
Protected Overridable Function GetNameAsString ( _
    propertyName As String _
) As String
'使用
Dim propertyName As String
Dim returnValue As String

returnValue = Me.GetNameAsString(propertyName)
protected virtual string GetNameAsString(
    string propertyName
)
protected:
virtual String^ GetNameAsString(
    String^ propertyName
)
protected function GetNameAsString(
    propertyName : String
) : String

Parameters

  • propertyName
    Type: System.String

    Name of the property for which the name is provided.

Return Value

Type: System.String

Returns the formatted name of the input property name for placement in a connection string.

Exceptions

Exception Condition
ArgumentNullException

The propertyName parameter is null.

Remarks

This method is called by the base implementation of ToDisplayString and ToFullString when formatting property names to be placed in the output string.

Permissions

See Also

Reference

DataConnectionProperties Class

DataConnectionProperties Members

Microsoft.VisualStudio.Data Namespace