Freigeben über


AdoDotNetConnectionProperties.ToDisplayString Method

Retrieves a string representation of the current set of data connection properties that are suitable for on-screen display.

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

Syntax

'Declaration
Public Overrides Function ToDisplayString As String
public override string ToDisplayString()
public:
virtual String^ ToDisplayString() override
abstract ToDisplayString : unit -> string 
override ToDisplayString : unit -> string 
public override function ToDisplayString() : String

Return Value

Type: System.String
Returns a string representation of the current set of data connection properties that are suitable for on-screen display.

Implements

IDataConnectionProperties.ToDisplayString()

Remarks

This method provides an implementation of the ToDisplayString method. For more information see ToDisplayString.

The base implementation of this method uses the OrderedProperties property to get a list of ordered properties, then for each property that IsSensitive returns false and ShouldPersistProperty returns true, it calls GetNameAsString and GetValueAsString and places them in the output string separated with an equal sign ("="), and followed by a semicolon (";").

.NET Framework Security

See Also

Reference

AdoDotNetConnectionProperties Class

Microsoft.VisualStudio.Data.AdoDotNet Namespace