Compartir a través de


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

'Declaración
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
'Uso
Dim instance As VSPIAImporterClass
Dim pTypeLibToWrap As TLIBATTR()
Dim wszDestinationDirectory As String
Dim wszKeyFile As String
Dim wszKeyContainer As String
Dim bDelaySign As Integer
Dim pCallback As IVsTypeLibraryWrapperCallback
Dim rgbstrWrapperPaths As IntPtr()
Dim rgWrappedTypeLibs As IntPtr()
Dim rgbGenerated As IntPtr()
Dim rgbstrWrapperTools As IntPtr()
Dim pcWrappedTypeLibs As UInteger
Dim returnValue As Integer

returnValue = instance.WrapTypeLibrary(pTypeLibToWrap, _
    wszDestinationDirectory, wszKeyFile, _
    wszKeyContainer, bDelaySign, pCallback, _
    rgbstrWrapperPaths, rgWrappedTypeLibs, _
    rgbGenerated, rgbstrWrapperTools, _
    pcWrappedTypeLibs)
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: System.String
    Finds or encapsulates wrappers for the requested type library as well as any dependent type libraries.
  • wszKeyFile
    Type: System.String
    Finds or encapsulates wrappers for the requested type library as well as any dependent type libraries.
  • wszKeyContainer
    Type: System.String
    Finds or encapsulates wrappers for the requested type library as well as any dependent type libraries.
  • bDelaySign
    Type: System.Int32
    Finds or encapsulates wrappers for the requested type library as well as any dependent type libraries.
  • rgbstrWrapperPaths
    Type: array<System.IntPtr[]
    Finds or encapsulates wrappers for the requested type library as well as any dependent type libraries.
  • rgWrappedTypeLibs
    Type: array<System.IntPtr[]
    Finds or encapsulates wrappers for the requested type library as well as any dependent type libraries.
  • rgbGenerated
    Type: array<System.IntPtr[]
    Finds or encapsulates wrappers for the requested type library as well as any dependent type libraries.
  • rgbstrWrapperTools
    Type: array<System.IntPtr[]
    Finds or encapsulates wrappers for the requested type library as well as any dependent type libraries.
  • pcWrappedTypeLibs
    Type: System.UInt32%
    Finds or encapsulates wrappers for the requested type library as well as any dependent type libraries.

Return Value

Type: System.Int32

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

VSPIAImporterClass Members

Microsoft.VisualStudio.Shell.Interop Namespace