Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.