Bagikan melalui


IVsTypeLibraryWrapper.NeedsRegeneration Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Determines whether a given wrapper for a given type library needs to be regenerated.

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

Syntax

'Declaration
Function NeedsRegeneration ( _
    pTypeLibToWrap As TLIBATTR(), _
    wszKeyFile As String, _
    wszKeyContainerName As String, _
    bDelaySign As Integer, _
    bCurrentlyDelaySigned As Integer, _
    wszExistingWrapperFilename As String, _
    <OutAttribute> ByRef pbNeedsRegeneration As Integer _
) As Integer
int NeedsRegeneration(
    TLIBATTR[] pTypeLibToWrap,
    string wszKeyFile,
    string wszKeyContainerName,
    int bDelaySign,
    int bCurrentlyDelaySigned,
    string wszExistingWrapperFilename,
    out int pbNeedsRegeneration
)
int NeedsRegeneration(
    [InAttribute] array<TLIBATTR>^ pTypeLibToWrap, 
    [InAttribute] String^ wszKeyFile, 
    [InAttribute] String^ wszKeyContainerName, 
    [InAttribute] int bDelaySign, 
    [InAttribute] int bCurrentlyDelaySigned, 
    [InAttribute] String^ wszExistingWrapperFilename, 
    [OutAttribute] int% pbNeedsRegeneration
)
abstract NeedsRegeneration : 
        pTypeLibToWrap:TLIBATTR[] * 
        wszKeyFile:string * 
        wszKeyContainerName:string * 
        bDelaySign:int * 
        bCurrentlyDelaySigned:int * 
        wszExistingWrapperFilename:string * 
        pbNeedsRegeneration:int byref -> int 
function NeedsRegeneration(
    pTypeLibToWrap : TLIBATTR[], 
    wszKeyFile : String, 
    wszKeyContainerName : String, 
    bDelaySign : int, 
    bCurrentlyDelaySigned : int, 
    wszExistingWrapperFilename : String, 
    pbNeedsRegeneration : int
) : int

Parameters

  • wszKeyContainerName
    Type: System.String
    [in] Specifies wszkey container name.
  • bDelaySign
    Type: System.Int32
    [in] Boolean indicating whether delay signed. If true, the assembly is partially signed.
  • bCurrentlyDelaySigned
    Type: System.Int32
    [in] Boolean indicating whether currently delay signed.
  • wszExistingWrapperFilename
    Type: System.String
    [in] Specifies the wrapper filename.
  • pbNeedsRegeneration
    Type: System.Int32%
    [out] false if the wrapper does not need to be regenerated. true if the wrapper needs to be regenerated.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From compsvcspkg.idl:

HRESULT IVsTypeLibraryWrapper::NeedsRegeneration(
   [in] TLIBATTR* pTypeLibToWrap,
   [in] LPCOLESTR wszKeyFile,
   [in] LPCOLESTR wszKeyContainerName,
   [in] BOOL bDelaySign,
   [in] BOOL bCurrentlyDelaySigned,
   [in] LPCOLESTR wszExistingWrapperFilename,
   [out,retval] BOOL* pbNeedsRegeneration
);

.NET Framework Security

See Also

Reference

IVsTypeLibraryWrapper Interface

Microsoft.VisualStudio.Shell.Interop Namespace