ILocalRegistry5::CreateAggregatedManagedInstance Method (String^, String^, String^, IntPtr, Guid, IntPtr)

 

Creates an instance of a managed class and returns a requested interface.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)

int CreateAggregatedManagedInstance(
	String^ codeBase,
	String^ AssemblyName,
	String^ TypeName,
	IntPtr pUnkOuter,
	[InAttribute] Guid% riid,
	[OutAttribute] IntPtr% ppvObj
)

Parameters

codeBase
Type: System::String^

[in] The location of the assembly. Use null if you do not use a URL. For more information, see CodeBase.

AssemblyName
Type: System::String^

[in] The simple, unencrypted name of the assembly.

TypeName
Type: System::String^

[in] The name of the type to create.

pUnkOuter
Type: System::IntPtr

[in] A pointer to the outer object to aggregate with the requested interface.

riid
Type: System::Guid

[in] The interface to use to communicate with the object, for example IID_IClassFactory.

ppvObj
Type: System::IntPtr

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

Return Value

Type: System::Int32

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

Return to top
Show: