WindowsCredential.SetSqlRegSvrCredential Método

Definição

Sobrecargas

Nome Description
SetSqlRegSvrCredential(String, Int32, String, Guid, SecureString)
SetSqlRegSvrCredential(String, Int32, String, Guid, SecureString, String)

Armazena a senha da conexão RegSvr fornecida no Gerenciador de Credenciais do Windows. Atualmente, usado apenas pela interface do usuário do SqlRepl, não deve ser confundido com servidores registrados do SSMS.

SetSqlRegSvrCredential(String, Int32, String, Guid, SecureString)

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

Parâmetros

instance
String
authType
Int32
user
String
serverType
Guid
password
SecureString

Aplica-se a

SetSqlRegSvrCredential(String, Int32, String, Guid, SecureString, String)

Armazena a senha da conexão RegSvr fornecida no Gerenciador de Credenciais do Windows. Atualmente, usado apenas pela interface do usuário do SqlRepl, não deve ser confundido com servidores registrados do SSMS.

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

Parâmetros

instance
String

O nome do servidor

authType
Int32

O tipo de autenticação usado pela conexão. O significado do valor depende do serverType

user
String

O nome de usuário

serverType
Guid

O tipo de conexão de servidor. Os valores válidos dependem do aplicativo.

password
SecureString

A senha

version
String

O identificador de versão do aplicativo de chamada

Exceções

Gerada ao salvar a senha falha

Aplica-se a