Конструктор WmiSmoObject (WmiCollectionBase, String)
Initializes a new instance of the WmiSmoObject class with the specified name and collection base class.
Пространство имен: Microsoft.SqlServer.Management.Smo.Wmi
Сборка: Microsoft.SqlServer.SqlWmiManagement (в Microsoft.SqlServer.SqlWmiManagement.dll)
Синтаксис
'Декларация
Protected Friend Sub New ( _
parentColl As WmiCollectionBase, _
name As String _
)
'Применение
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
)
Параметры
- parentColl
Тип: Microsoft.SqlServer.Management.Smo.Wmi.WmiCollectionBase
A WmiCollectionBase object on which the WmiSmoObject object is based.
- name
Тип: System.String
A String value that specifies the name of the WmiSmoObject object.
Замечания
This constructor is called by derived class constructors to initialize the state in this type.
Примеры
Управление службами и сетевыми настройками с помощью поставщика WMI
См. также
Справочник
Пространство имен Microsoft.SqlServer.Management.Smo.Wmi