ILocalRegistry5.CreateAggregatedManagedInstance Method
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)
Syntax
'Declaration
Function CreateAggregatedManagedInstance ( _
codeBase As String, _
AssemblyName As String, _
TypeName As String, _
pUnkOuter As IntPtr, _
ByRef riid As Guid, _
<OutAttribute> ByRef ppvObj As IntPtr _
) As Integer
int CreateAggregatedManagedInstance(
string codeBase,
string AssemblyName,
string TypeName,
IntPtr pUnkOuter,
ref Guid riid,
out IntPtr ppvObj
)
int CreateAggregatedManagedInstance(
[InAttribute] String^ codeBase,
[InAttribute] String^ AssemblyName,
[InAttribute] String^ TypeName,
[InAttribute] IntPtr pUnkOuter,
[InAttribute] Guid% riid,
[OutAttribute] IntPtr% ppvObj
)
abstract CreateAggregatedManagedInstance :
codeBase:string *
AssemblyName:string *
TypeName:string *
pUnkOuter:IntPtr *
riid:Guid byref *
ppvObj:IntPtr byref -> int
function CreateAggregatedManagedInstance(
codeBase : String,
AssemblyName : String,
TypeName : String,
pUnkOuter : IntPtr,
riid : Guid,
ppvObj : IntPtr
) : int
Parameters
codeBase
Type: String[in] The location of the assembly. Use nulla null reference (Nothing in Visual Basic) if you do not use a URL. For more information, see CodeBase.
AssemblyName
Type: String[in] The simple, unencrypted name of the assembly.
TypeName
Type: String[in] The name of the type to create.
pUnkOuter
Type: IntPtr[in] A pointer to the outer object to aggregate with the requested interface.
riid
Type: Guid%[in] The interface to use to communicate with the object, for example IID_IClassFactory.
ppvObj
Type: 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 nulla null reference (Nothing in Visual Basic).
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.