ConnectionManagerBase.CreateInstance Method (String)
Creates a new instance of the class with the specified name.
Namespace: Microsoft.ConfigurationManagement.ManagementProvider
Assembly: Microsoft.ConfigurationManagement.ManagementProvider (in microsoft.configurationmanagement.managementprovider.dll)
'Usage
Dim instance As ConnectionManagerBase
Dim objectClass As String
Dim returnValue As IResultObject
returnValue = instance.CreateInstance(objectClass)
'Declaration
Public MustOverride Function CreateInstance ( _
objectClass As String _
) As IResultObject
public abstract IResultObject CreateInstance (
string objectClass
)
public:
virtual IResultObject^ CreateInstance (
String^ objectClass
) abstract
public abstract IResultObject CreateInstance (
String objectClass
)
public abstract function CreateInstance (
objectClass : String
) : IResultObject
- objectClass
[in] The name of the class for which to create a new instance.
IResultObject interface for the class instance.
For information about using this method, see How to Create a Configuration Manager Object by Using Managed Code.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Windows Server 2003, Windows Vista
Windows Server 2003,Windows Vista
ConnectionManagerBase Class
ConnectionManagerBase Members
Microsoft.ConfigurationManagement.ManagementProvider Namespace
IResultObject
How to Create a Configuration Manager Object by Using Managed Code