Share via


WmiConnectionInfo Class

The WmiConnectionInfo class represents connection information used by the installation of Windows Management Instrumentation (WMI).

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Management.Smo.Wmi.WmiConnectionInfo

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

Syntax

'Declaration
Public NotInheritable Class WmiConnectionInfo
'Usage
Dim instance As WmiConnectionInfo
public sealed class WmiConnectionInfo
public ref class WmiConnectionInfo sealed
[<SealedAttribute>]
type WmiConnectionInfo =  class end
public final class WmiConnectionInfo

The WmiConnectionInfo type exposes the following members.

Properties

  Name Description
Public property MachineName Gets or sets the name of the computer on which Windows Management Instrumentation (WMI) is installed.
Public property ProviderArchitecture Gets or sets the ProviderArchitecture value which represents the provider architecture of this instance.
Public property Timeout Gets or sets the period after which the Windows Management Instrumentation (WMI) connection times out in seconds.
Public property Username Gets the name of the account used to establish the connection.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method SetPassword Sets the password for the account that is used to establish the connection.
Public method ToString (Inherited from Object.)

Top

Remarks

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Examples

Managing Services and Network Settings by Using WMI Provider

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SqlServer.Management.Smo.Wmi Namespace

Other Resources

WMI and SQL Server