Share via


WmiSmoObject Constructors

Definition

Initializes a new instance of the WmiSmoObject class.

Overloads

WmiSmoObject()

Initializes a new instance of the WmiSmoObject class.

WmiSmoObject(String)

Initializes a new instance of the WmiSmoObject class with the specified name.

WmiSmoObject(WmiCollectionBase, String)

Initializes a new instance of the WmiSmoObject class with the specified name and collection base class.

WmiSmoObject()

Initializes a new instance of the WmiSmoObject class.

protected public:
 WmiSmoObject();
protected internal WmiSmoObject ();
Protected Friend Sub New ()

Examples

Managing Services and Network Settings by Using WMI Provider

Remarks

The default constructor initializes any fields to their default values.

Applies to

WmiSmoObject(String)

Initializes a new instance of the WmiSmoObject class with the specified name.

protected public:
 WmiSmoObject(System::String ^ name);
protected internal WmiSmoObject (string name);
new Microsoft.SqlServer.Management.Smo.Wmi.WmiSmoObject : string -> Microsoft.SqlServer.Management.Smo.Wmi.WmiSmoObject
Protected Friend Sub New (name As String)

Parameters

name
String

A String value that specifies the name of the WmiSmoObject object.

Examples

Managing Services and Network Settings by Using WMI Provider

Remarks

This constructor is called by derived class constructors to initialize the state in this type.

Applies to

WmiSmoObject(WmiCollectionBase, String)

Initializes a new instance of the WmiSmoObject class with the specified name and collection base class.

protected public:
 WmiSmoObject(Microsoft::SqlServer::Management::Smo::Wmi::WmiCollectionBase ^ parentColl, System::String ^ name);
protected internal WmiSmoObject (Microsoft.SqlServer.Management.Smo.Wmi.WmiCollectionBase parentColl, string name);
new Microsoft.SqlServer.Management.Smo.Wmi.WmiSmoObject : Microsoft.SqlServer.Management.Smo.Wmi.WmiCollectionBase * string -> Microsoft.SqlServer.Management.Smo.Wmi.WmiSmoObject
Protected Friend Sub New (parentColl As WmiCollectionBase, name As String)

Parameters

parentColl
WmiCollectionBase

A WmiCollectionBase object on which the WmiSmoObject object is based.

name
String

A String value that specifies the name of the WmiSmoObject object.

Examples

Managing Services and Network Settings by Using WMI Provider

Remarks

This constructor is called by derived class constructors to initialize the state in this type.

Applies to