Metoda SetAccount (String, String)
Określa nazwę konta i hasło dla konto proxy na wystąpienie z SQL Server.
Przestrzeń nazw: Microsoft.SqlServer.Management.Smo
Zestaw: Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)
Syntax
'Deklaracja
Public Sub SetAccount ( _
windowsAccount As String, _
password As String _
)
'Użycie
Dim instance As ServerProxyAccount
Dim windowsAccount As String
Dim password As String
instance.SetAccount(windowsAccount, password)
public void SetAccount(
string windowsAccount,
string password
)
public:
void SetAccount(
String^ windowsAccount,
String^ password
)
member SetAccount :
windowsAccount:string *
password:string -> unit
public function SetAccount(
windowsAccount : String,
password : String
)
Parameters
- windowsAccount
Typ: System. . :: . .String
A String wartość, która określa nazwę konta.
- password
Typ: System. . :: . .String
A String wartość, która określa hasło dla konta.
Zobacz także