次の方法で共有


SetAccount メソッド (String, String)

SQL Server のインスタンスのプロキシ アカウントのアカウント名およびパスワードを設定します。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
Public Sub SetAccount ( _
    windowsAccount As String, _
    password As String _
)
'使用
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
)

パラメーター