Delen via


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

'Declaration
Protected Overridable Function GetNameAsString ( _
    propertyName As String _
) As String
protected virtual string GetNameAsString(
    string propertyName
)
protected:
virtual String^ GetNameAsString(
    String^ propertyName
)
abstract GetNameAsString : 
        propertyName:string -> string  
override GetNameAsString : 
        propertyName:string -> string
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.

.NET Framework Security

See Also

Reference

DataConnectionProperties Class

Microsoft.VisualStudio.Data Namespace