Bagikan melalui


WmiSmoObject Constructor (WmiCollectionBase, String)

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

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

Syntax

'Declaration
Protected Friend Sub New ( _
    parentColl As WmiCollectionBase, _
    name As String _
)
'Usage
Dim parentColl As WmiCollectionBase 
Dim name As String 

Dim instance As New WmiSmoObject(parentColl, _
    name)
protected internal WmiSmoObject(
    WmiCollectionBase parentColl,
    string name
)
protected public:
WmiSmoObject(
    WmiCollectionBase^ parentColl, 
    String^ name
)
new : 
        parentColl:WmiCollectionBase * 
        name:string -> WmiSmoObject
function WmiSmoObject(
    parentColl : WmiCollectionBase, 
    name : String
)

Parameters

Remarks

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

Examples

Managing Services and Network Settings by Using WMI Provider

See Also

Reference

WmiSmoObject Class

WmiSmoObject Overload

Microsoft.SqlServer.Management.Smo.Wmi Namespace

Other Resources

WMI and SQL Server

Connecting to the SQL Server Database Engine