Creates a new instance of the specified class, designated by object. Namespace: Microsoft.ConfigurationManagement.ManagementProvider
Assembly: Microsoft.ConfigurationManagement.ManagementProvider (in microsoft.configurationmanagement.managementprovider.dll)

Usage

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

returnValue = instance.CreateInstance(objectClass)

Syntax

Visual Basic
Public MustOverride Function CreateInstance ( _
		objectClass As Object _
) As IResultObject
C#
public abstract IResultObject CreateInstance (
		Object objectClass
)
C++
public:
virtual IResultObject^ CreateInstance (
		Object^ objectClass
) abstract
J#
public abstract IResultObject CreateInstance (
		Object objectClass
)
JScript
public abstract function CreateInstance (
		objectClass : Object
) : IResultObject

Parameters

objectClass

[in] System.Object instance for which to create a new class instance.

Return Value

IResultObject interface for the class instance.

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