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

'Usage
Dim instance As ConnectionManagerBase
Dim objectClass As String
Dim returnValue As IResultObject

returnValue = instance.CreateInstance(objectClass)

Syntax

'Declaration
Public MustOverride Function CreateInstance ( _
    objectClass As String _
) As IResultObject

Parameters

  • objectClass
    [in] The name of the class for which to create a new instance.

Return Value

IResultObject interface for the class instance.

Remarks

For information about using this method, see How to Create a Configuration Manager Object by Using Managed Code.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2003,Windows Vista

See Also

Reference

ConnectionManagerBase Class
ConnectionManagerBase Members
Microsoft.ConfigurationManagement.ManagementProvider Namespace
IResultObject

Other Resources

How to Create a Configuration Manager Object by Using Managed Code