VSPIAImporterClass.WrapTypeLibrary Method

Finds or encapsulates wrappers for the requested type library as well as any dependent type libraries.

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

Syntax

'Declaration
Public Overridable Function WrapTypeLibrary ( _
    pTypeLibToWrap As TLIBATTR(), _
    wszDestinationDirectory As String, _
    wszKeyFile As String, _
    wszKeyContainer As String, _
    bDelaySign As Integer, _
    pCallback As IVsTypeLibraryWrapperCallback, _
    <OutAttribute> rgbstrWrapperPaths As IntPtr(), _
    <OutAttribute> rgWrappedTypeLibs As IntPtr(), _
    <OutAttribute> rgbGenerated As IntPtr(), _
    <OutAttribute> rgbstrWrapperTools As IntPtr(), _
    <OutAttribute> ByRef pcWrappedTypeLibs As UInteger _
) As Integer
public virtual int WrapTypeLibrary(
    TLIBATTR[] pTypeLibToWrap,
    string wszDestinationDirectory,
    string wszKeyFile,
    string wszKeyContainer,
    int bDelaySign,
    IVsTypeLibraryWrapperCallback pCallback,
    IntPtr[] rgbstrWrapperPaths,
    IntPtr[] rgWrappedTypeLibs,
    IntPtr[] rgbGenerated,
    IntPtr[] rgbstrWrapperTools,
    out uint pcWrappedTypeLibs
)
public:
virtual int WrapTypeLibrary(
    [InAttribute] array<TLIBATTR>^ pTypeLibToWrap, 
    [InAttribute] String^ wszDestinationDirectory, 
    [InAttribute] String^ wszKeyFile, 
    [InAttribute] String^ wszKeyContainer, 
    [InAttribute] int bDelaySign, 
    [InAttribute] IVsTypeLibraryWrapperCallback^ pCallback, 
    [OutAttribute] array<IntPtr>^ rgbstrWrapperPaths, 
    [OutAttribute] array<IntPtr>^ rgWrappedTypeLibs, 
    [OutAttribute] array<IntPtr>^ rgbGenerated, 
    [OutAttribute] array<IntPtr>^ rgbstrWrapperTools, 
    [OutAttribute] unsigned int% pcWrappedTypeLibs
)
abstract WrapTypeLibrary : 
        pTypeLibToWrap:TLIBATTR[] * 
        wszDestinationDirectory:string * 
        wszKeyFile:string * 
        wszKeyContainer:string * 
        bDelaySign:int * 
        pCallback:IVsTypeLibraryWrapperCallback * 
        rgbstrWrapperPaths:IntPtr[] byref * 
        rgWrappedTypeLibs:IntPtr[] byref * 
        rgbGenerated:IntPtr[] byref * 
        rgbstrWrapperTools:IntPtr[] byref * 
        pcWrappedTypeLibs:uint32 byref -> int  
override WrapTypeLibrary : 
        pTypeLibToWrap:TLIBATTR[] * 
        wszDestinationDirectory:string * 
        wszKeyFile:string * 
        wszKeyContainer:string * 
        bDelaySign:int * 
        pCallback:IVsTypeLibraryWrapperCallback * 
        rgbstrWrapperPaths:IntPtr[] byref * 
        rgWrappedTypeLibs:IntPtr[] byref * 
        rgbGenerated:IntPtr[] byref * 
        rgbstrWrapperTools:IntPtr[] byref * 
        pcWrappedTypeLibs:uint32 byref -> int
public function WrapTypeLibrary(
    pTypeLibToWrap : TLIBATTR[], 
    wszDestinationDirectory : String, 
    wszKeyFile : String, 
    wszKeyContainer : String, 
    bDelaySign : int, 
    pCallback : IVsTypeLibraryWrapperCallback, 
    rgbstrWrapperPaths : IntPtr[], 
    rgWrappedTypeLibs : IntPtr[], 
    rgbGenerated : IntPtr[], 
    rgbstrWrapperTools : IntPtr[], 
    pcWrappedTypeLibs : uint
) : int

Parameters

  • wszDestinationDirectory
    Type: String

    Finds or encapsulates wrappers for the requested type library as well as any dependent type libraries.

  • wszKeyFile
    Type: String

    Finds or encapsulates wrappers for the requested type library as well as any dependent type libraries.

  • wszKeyContainer
    Type: String

    Finds or encapsulates wrappers for the requested type library as well as any dependent type libraries.

  • bDelaySign
    Type: Int32

    Finds or encapsulates wrappers for the requested type library as well as any dependent type libraries.

  • rgbstrWrapperPaths
    Type: array<IntPtr[]

    Finds or encapsulates wrappers for the requested type library as well as any dependent type libraries.

  • rgWrappedTypeLibs
    Type: array<IntPtr[]

    Finds or encapsulates wrappers for the requested type library as well as any dependent type libraries.

  • rgbGenerated
    Type: array<IntPtr[]

    Finds or encapsulates wrappers for the requested type library as well as any dependent type libraries.

  • rgbstrWrapperTools
    Type: array<IntPtr[]

    Finds or encapsulates wrappers for the requested type library as well as any dependent type libraries.

  • pcWrappedTypeLibs
    Type: UInt32%

    Finds or encapsulates wrappers for the requested type library as well as any dependent type libraries.

Return Value

Type: Int32
Returns S_OK if the method is successful, E_FAIL if the method fails.

Implements

IVsTypeLibraryWrapper.WrapTypeLibrary(array<TLIBATTR[], String, String, String, Int32, IVsTypeLibraryWrapperCallback, array<IntPtr[], array<IntPtr[], array<IntPtr[], array<IntPtr[], UInt32%)

.NET Framework Security

See Also

Reference

VSPIAImporterClass Class

Microsoft.VisualStudio.Shell.Interop Namespace