Freigeben über


WmiConnectionInfo.SetPassword-Methode

Sets the password for the account that is used to establish the connection.

Namespace:  Microsoft.SqlServer.Management.Smo.Wmi
Assembly:  Microsoft.SqlServer.SqlWmiManagement (in Microsoft.SqlServer.SqlWmiManagement.dll)

Syntax

'Declaration
Public Sub SetPassword ( _
    password As String _
)
'Usage
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
)

Parameter

Beispiele

Verwalten von Diensten und Netzwerkeinstellungen durch die Nutzung von WMI-Anbieter

Siehe auch

Verweis

WmiConnectionInfo Klasse

Microsoft.SqlServer.Management.Smo.Wmi-Namespace

Andere Ressourcen

WMI and SQL Server

Herstellen einer Verbindung zum SQL Server-Datenbankmodul