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.Smo (in microsoft.sqlserver.smo.dll)
Syntax
'Declaration
Protected Friend Sub New ( _
parentColl As WmiCollectionBase, _
name As String _
)
protected internal WmiSmoObject (
WmiCollectionBase parentColl,
string name
)
protected public:
WmiSmoObject (
WmiCollectionBase^ parentColl,
String^ name
)
protected WmiSmoObject (
WmiCollectionBase parentColl,
String name
)
protected internal function WmiSmoObject (
parentColl : WmiCollectionBase,
name : String
)
Parameters
- parentColl
A WmiCollectionBase object on which the WmiSmoObject object is based.
- name
A String value that specifies the name of the WmiSmoObject object.
Remarks
This constructor is called by derived class constructors to initialize the state in this type.
This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.
Example
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
See Also
Reference
WmiSmoObject Class
WmiSmoObject Members
Microsoft.SqlServer.Management.Smo.Wmi Namespace
Other Resources
Managing Services and Network Settings by Using WMI Provider
WMI and SQL Server
Connecting to the SQL Server Database Engine