WmiConnectionInfo.SetPassword メソッド

接続を確立するために使用するアカウントのパスワードを設定します。

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

構文

'宣言
Public Sub SetPassword ( _
    password As String _
)
'使用
Dim instance As WmiConnectionInfo 
Dim password As String

instance.SetPassword(password)
public void SetPassword(
    string password
)
public:
void SetPassword(
    String^ password
)
member SetPassword : 
        password:string -> unit
public function SetPassword(
    password : String
)

パラメーター

使用例

WMI プロバイダーを使用したサービスの管理とネットワーク設定

関連項目

参照

WmiConnectionInfo クラス

Microsoft.SqlServer.Management.Smo.Wmi 名前空間

その他の技術情報

WMI and SQL Server

SQL Server データベース エンジンへの接続