Share via


DataConnectionProperties.ToSafeString Method

Retrieves a string representation of the current set of data connection properties that excludes sensitive properties or properties that should not be persisted.

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

Syntax

'Declaration
Public Function ToSafeString As String
public string ToSafeString()
public:
virtual String^ ToSafeString() sealed
abstract ToSafeString : unit -> string  
override ToSafeString : unit -> string
public final function ToSafeString() : String

Return Value

Type: System.String
A string representation of the current set of data connection properties that excludes sensitive properties or properties that should not be persisted.

Implements

IVsDataConnectionProperties.ToSafeString()

Remarks

An example of a sensitive property is a password property.

The base implementation of this method uses the OrderedProperties property to get a list of ordered properties, and then, for each property that is not sensitive and that should be persisted - that is, for which IsSensitive returns false and ShouldPersistProperty returns true - it calls GetKeyAsString and GetValueAsString and places them in the output string.

.NET Framework Security

See Also

Reference

DataConnectionProperties Class

Microsoft.VisualStudio.Data.Framework Namespace

IsSensitive