Delen via


ConnectionManagerBase.CreateInstance Method (Object)

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

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

returnValue = instance.CreateInstance(objectClass)

Syntax

'Declaration
Public MustOverride Function CreateInstance ( _
    objectClass As Object _
) As IResultObject
public abstract IResultObject CreateInstance (
    Object objectClass
)
public:
virtual IResultObject^ CreateInstance (
    Object^ objectClass
) abstract
public abstract IResultObject CreateInstance (
    Object objectClass
)
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

Reference

ConnectionManagerBase Class
ConnectionManagerBase Members
Microsoft.ConfigurationManagement.ManagementProvider Namespace
IResultObject