IConnectionStringParser.MakeSafeToPersist Method
Returns a connection string that is safe to persist in documents.
Namespace: Microsoft.Data.Schema.Extensibility
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Function MakeSafeToPersist ( _
connectionString As String _
) As String
string MakeSafeToPersist(
string connectionString
)
String^ MakeSafeToPersist(
String^ connectionString
)
abstract MakeSafeToPersist :
connectionString:string -> string
function MakeSafeToPersist(
connectionString : String
) : String
Parameters
- connectionString
Type: System.String
The full connection string.
Return Value
Type: System.String
The connection string with any security fields removed.
Exceptions
Exception | Condition |
---|---|
InvalidConnectionStringException | The connection string cannot be parsed. |
.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
IConnectionStringParser Interface