ILocalRegistry3::GetClassObjectOfManagedClass Method (String^, String^, String^, Guid, IntPtr)
Visual Studio 2015
Returns an interface that is implemented by a particular managed object.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int GetClassObjectOfManagedClass(
String^ codeBase,
String^ assemblyName,
String^ typeName,
[InAttribute] Guid% riid,
[OutAttribute] IntPtr% ppvClassObject
)
Parameters
- codeBase
-
Type:
System::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
-
Type:
System::String^
[in] String that contains the simple, unencrypted name of the assembly.
- typeName
-
Type:
System::String^
[in] String that contains the name of the type to create.
- riid
-
Type:
System::Guid
[in] Interface to be used to communicate with the object. For example, IID_IClassFactory.
- ppvClassObject
-
Type:
System::IntPtr
[out] Pointer to the interface that is requested in riid. On successful return, ppvClassObject contains the requested interface pointer. On failure, ppvClassObject contains null.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From objext.idl:
HRESULT ILocalRegistry3::GetClassObjectOfManagedClass(
[in] LPCWSTR codeBase,
[in] LPCWSTR assemblyName,
[in] LPCWSTR typeName,
[in] REFIID riid,
[out] void** ppvClassObject
;
Show: