Compartir a través de


WmiSmoObject Constructor (WmiCollectionBase, String)

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

Espacio de nombres:  Microsoft.SqlServer.Management.Smo.Wmi
Ensamblado:  Microsoft.SqlServer.SqlWmiManagement (en Microsoft.SqlServer.SqlWmiManagement.dll)

Sintaxis

'Declaración
Protected Friend Sub New ( _
    parentColl As WmiCollectionBase, _
    name As String _
)
'Uso
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
)

Parámetros

Comentarios

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