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

'宣言
Function ProfferTypeLib ( _
    ByRef guidTypeLib As Guid, _
    uVerMaj As UInteger, _
    uVerMin As UInteger, _
    dwFlags As UInteger _
) As Integer
'使用
Dim instance As IProfferTypeLib
Dim guidTypeLib As Guid
Dim uVerMaj As UInteger
Dim uVerMin As UInteger
Dim dwFlags As UInteger
Dim returnValue As Integer

returnValue = instance.ProfferTypeLib(guidTypeLib, _
    uVerMaj, uVerMin, dwFlags)
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
)
function ProfferTypeLib(
    guidTypeLib : Guid, 
    uVerMaj : uint, 
    uVerMin : uint, 
    dwFlags : uint
) : int

Parameters

  • guidTypeLib
    Type: System.Guid%

    [in] Type library GUID.

  • uVerMaj
    Type: System.UInt32

    [in] Major version number of the type library.

  • uVerMin
    Type: System.UInt32

    [in] Minor version number of the type library.

  • dwFlags
    Type: System.UInt32

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

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 designer.idl:

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

Permissions

See Also

Reference

IProfferTypeLib Interface

IProfferTypeLib Members

Microsoft.VisualStudio.Shell.Interop Namespace