Udostępnij za pośrednictwem


ILocalRegistry3.GetClassObjectOfManagedClass Method

Definition

Returns an interface that is implemented by a particular managed object.

public:
 int GetClassObjectOfManagedClass(System::String ^ codeBase, System::String ^ assemblyName, System::String ^ typeName, Guid % riid, [Runtime::InteropServices::Out] IntPtr % ppvClassObject);
public int GetClassObjectOfManagedClass (string codeBase, string assemblyName, string typeName, ref Guid riid, out IntPtr ppvClassObject);
abstract member GetClassObjectOfManagedClass : string * string * string * Guid * nativeint -> int
Public Function GetClassObjectOfManagedClass (codeBase As String, assemblyName As String, typeName As String, ByRef riid As Guid, ByRef ppvClassObject As IntPtr) As Integer

Parameters

codeBase
String

[in] String that contains a URL that is the location of the assembly. Optional: use null if you do not use a URL. For more information, see CodeBase.

assemblyName
String

[in] String that contains the simple, unencrypted name of the assembly.

typeName
String

[in] String that contains the name of the type to create.

riid
Guid

[in] Interface to be used to communicate with the object. For example, IID_IClassFactory.

ppvClassObject
IntPtr

nativeint

[out] Pointer to the interface that is requested in riid. On successful return, ppvClassObject contains the requested interface pointer. On failure, ppvClassObject contains null.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

This method is safe to access from any thread.

Applies to