ILocalRegistry5.CreateAggregatedManagedInstance Method

Returns an instance of an interface.

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

Syntax

'Declaración
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
'Uso
Dim instance As ILocalRegistry5
Dim codeBase As String
Dim AssemblyName As String
Dim TypeName As String
Dim pUnkOuter As IntPtr
Dim riid As Guid
Dim ppvObj As IntPtr
Dim returnValue As Integer

returnValue = instance.CreateAggregatedManagedInstance(codeBase, _
    AssemblyName, TypeName, pUnkOuter, _
    riid, ppvObj)
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: System.String
    [in] String that contains a URL that is the location of the assembly. Optional: use nulla null reference (Nothing in Visual Basic) 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.
  • pUnkOuter
    Type: System.IntPtr
    [in] Pointer to an IUnknown interface of the outer object to aggregate with the requested interface.
  • riid
    Type: System.Guid%
    [in] Interface to use to communicate with the object. For example, IID_IClassFactory.
  • ppvObj
    Type: System.IntPtr%
    [out] 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: System.Int32

.NET Framework Security

See Also

Reference

ILocalRegistry5 Interface

ILocalRegistry5 Members

Microsoft.VisualStudio.Shell.Interop Namespace