Partager via


IProfferTypeLib.ProfferTypeLib Method

Provides an ActiveX designer's type library to its host.

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

Syntax

'Declaration
Function ProfferTypeLib ( _
    ByRef guidTypeLib As Guid, _
    uVerMaj As UInteger, _
    uVerMin As UInteger, _
    dwFlags As UInteger _
) As Integer
int ProfferTypeLib(
    ref Guid guidTypeLib,
    uint uVerMaj,
    uint uVerMin,
    uint dwFlags
)
int ProfferTypeLib(
    [InAttribute] Guid% guidTypeLib, 
    [InAttribute] unsigned int uVerMaj, 
    [InAttribute] unsigned int uVerMin, 
    [InAttribute] unsigned int dwFlags
)
abstract ProfferTypeLib : 
        guidTypeLib:Guid byref * 
        uVerMaj:uint32 * 
        uVerMin:uint32 * 
        dwFlags:uint32 -> int
function ProfferTypeLib(
    guidTypeLib : Guid, 
    uVerMaj : uint, 
    uVerMin : uint, 
    dwFlags : uint
) : int

Parameters

  • guidTypeLib
    Type: Guid%

    [in] Type library GUID.

  • uVerMaj
    Type: UInt32

    [in] Major version number of the type library.

  • uVerMin
    Type: UInt32

    [in] Minor version number of the type library.

  • dwFlags
    Type: UInt32

    [in] Type library flags. Use CONTROLTYPELIB, defined in designer.h, for a type library of an ActiveX control.

Return Value

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

Remarks

COM Signature

From designer.idl:

HRESULT IProfferTypeLib::ProfferTypeLib(
   [in] REFGUID guidTypeLib, 
   [in] UINT uVerMaj, 
   [in] UINT uVerMin, 
   [in] DWORD dwFlags
);

.NET Framework Security

See Also

Reference

IProfferTypeLib Interface

Microsoft.VisualStudio.Shell.Interop Namespace