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

Visual Basic
Dim instance As ConnectionManagerBase
Dim objectClass As String
Dim returnValue As IResultObject

returnValue = instance.CreateInstance(objectClass)

Syntax

Visual Basic
Public MustOverride Function CreateInstance ( _
		objectClass As String _
) As IResultObject
C#
public abstract IResultObject CreateInstance (
		string objectClass
)
C++
public:
virtual IResultObject^ CreateInstance (
		String^ objectClass
) abstract
J#
public abstract IResultObject CreateInstance (
		String objectClass
)
JScript
public abstract function CreateInstance (
		objectClass : String
) : 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