WindowsCredential.GetSqlSsmsCredential Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetSqlSsmsCredential(String, Int32, String, Guid) | |
GetSqlSsmsCredential(String, Int32, String, Guid, String) |
Returns the password from Windows Credential Manager for the given SSMS saved connection |
GetSqlSsmsCredential(String, Int32, String, Guid)
public static System.Security.SecureString GetSqlSsmsCredential(string instance, int authType, string user, Guid serverType);
static member GetSqlSsmsCredential : string * int * string * Guid -> System.Security.SecureString
Public Shared Function GetSqlSsmsCredential (instance As String, authType As Integer, user As String, serverType As Guid) As SecureString
Parameters
- instance
- String
- authType
- Int32
- user
- String
- serverType
- Guid
Returns
Applies to
GetSqlSsmsCredential(String, Int32, String, Guid, String)
Returns the password from Windows Credential Manager for the given SSMS saved connection
public static System.Security.SecureString GetSqlSsmsCredential(string instance, int authType, string user, Guid serverType, string version);
static member GetSqlSsmsCredential : string * int * string * Guid * string -> System.Security.SecureString
Public Shared Function GetSqlSsmsCredential (instance As String, authType As Integer, user As String, serverType As Guid, version As String) As SecureString
Parameters
- instance
- String
The server name
- authType
- Int32
The type of authentication used by the connection. The meaning of the value depends on the serverType
- user
- String
The user name
- serverType
- Guid
The type of server connection. The valid values are application dependent.
- version
- String
The version identifier of the calling application