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.
示例
请参阅
参考
Microsoft.SqlServer.Management.Smo.Wmi 命名空间