IDataConnectionProperties.ToDisplayString Method
Retrieves a connection string for on-screen display reflecting the current set of connection properties, minus "sensitive" information that should not be displayed.
Namespace: Microsoft.Data.ConnectionUI
Assembly: Microsoft.Data.ConnectionUI (in Microsoft.Data.ConnectionUI.dll)
Syntax
'Declaration
Function ToDisplayString As String
string ToDisplayString()
String^ ToDisplayString()
abstract ToDisplayString : unit -> string
function ToDisplayString() : String
Return Value
Type: System.String
The set of connection properties that are suitable for display on-screen.
Remarks
"Sensitive" information means, for example, passwords or other proprietary information with on-screen display that might compromise system or user security.
.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
IDataConnectionProperties Interface