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.
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
'Usage
Dim instance As DataConnectionProperties
Dim returnValue As String
returnValue = instance.ToSafeString()
public string ToSafeString()
public:
virtual String^ ToSafeString() sealed
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
- 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.
See Also
Reference
DataConnectionProperties Class
DataConnectionProperties Members