WindowsCredential.GetSqlRegSvrCredential 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
GetSqlRegSvrCredential(String, Int32, String, Guid) | |
GetSqlRegSvrCredential(String, Int32, String, Guid, String) |
Returns the password from Windows Credential Manager for the given RegSvr. Currently only used by SqlRepl UI, not to be confused with SSMS registered servers. |
GetSqlRegSvrCredential(String, Int32, String, Guid)
public static System.Security.SecureString GetSqlRegSvrCredential(string instance, int authType, string user, Guid serverType);
static member GetSqlRegSvrCredential : string * int * string * Guid -> System.Security.SecureString
Public Shared Function GetSqlRegSvrCredential (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
GetSqlRegSvrCredential(String, Int32, String, Guid, String)
Returns the password from Windows Credential Manager for the given RegSvr. Currently only used by SqlRepl UI, not to be confused with SSMS registered servers.
public static System.Security.SecureString GetSqlRegSvrCredential(string instance, int authType, string user, Guid serverType, string version);
static member GetSqlRegSvrCredential : string * int * string * Guid * string -> System.Security.SecureString
Public Shared Function GetSqlRegSvrCredential (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