Compartir a través de


DataConnectionProperties.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
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'Declaration
Public Overridable Function ToDisplayString As String
public virtual string ToDisplayString()
public:
virtual String^ ToDisplayString()
abstract ToDisplayString : unit -> string  
override ToDisplayString : unit -> string
public 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

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.

.NET Framework Security

See Also

Reference

DataConnectionProperties Class

Microsoft.VisualStudio.Data Namespace