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

'宣言
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
'使用
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
)
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

  • pTypeLibToWrap
    Type: []

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

  • wszDestinationDirectory
    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: []

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

  • rgWrappedTypeLibs
    Type: []

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

  • rgbGenerated
    Type: []

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

  • rgbstrWrapperTools
    Type: []

    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([], String, String, String, Int32, IVsTypeLibraryWrapperCallback, [], [], [], [], UInt32%)

Permissions

See Also

Reference

VSPIAImporterClass Class

VSPIAImporterClass Members

Microsoft.VisualStudio.Shell.Interop Namespace