Share via


WindowsCredential.SetSqlSsmsCredential Method

Definition

Overloads

SetSqlSsmsCredential(String, Int32, String, Guid, SecureString)

public static void SetSqlSsmsCredential(string instance, int authType, string user, Guid serverType, System.Security.SecureString password);
static member SetSqlSsmsCredential : string * int * string * Guid * System.Security.SecureString -> unit
Public Shared Sub SetSqlSsmsCredential (instance As String, authType As Integer, user As String, serverType As Guid, password As SecureString)

Parameters

instance
String
authType
Int32
user
String
serverType
Guid
password
SecureString

Applies to

SetSqlSsmsCredential(String, Int32, String, Guid, SecureString, String)

Stores the password for the given SSMS saved connection in Windows Credential Manager

public static void SetSqlSsmsCredential(string instance, int authType, string user, Guid serverType, System.Security.SecureString password, string version);
static member SetSqlSsmsCredential : string * int * string * Guid * System.Security.SecureString * string -> unit
Public Shared Sub SetSqlSsmsCredential (instance As String, authType As Integer, user As String, serverType As Guid, password As SecureString, version As String)

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.

password
SecureString

The password

version
String

The version identifier of the calling application

Exceptions

Thrown when saving the password fails

Applies to