Share via


IMetaDataConverter Interface

Provides methods to map type libraries to their metadata signatures, and to convert from one to the other.

interface IMetaDataConverter : IUnknown {
        
    HRESULT GetMetaDataFromTypeInfo (
        [in]  ITypeInfo            *pITI,
        [out] IMetaDataImport      **ppMDI
    );
        
    HRESULT GetMetaDataFromTypeLib (
        [in]  ITypeLib             *pITL, 
        [out] IMetaDataImport      **ppMDI
    );
        
    HRESULT GetTypeLibFromMetaData (
        [in]  BSTR                 strModule, 
        [in]  BSTR                 strTlbName, 
        [out] ITypeLib             **ppITL
    );
        
};

Methods

Method

Description

IMetaDataConverter::GetMetaDataFromTypeInfo Method

Gets a pointer to an IMetaDataImport instance that represents the metadata signature for the type library referenced by the specified ITypeInfo instance.

IMetaDataConverter::GetMetaDataFromTypeLib Method

Gets a pointer to an IMetaDataImport instance that represents the metadata signature for the type library represented by the specified ITypeLib instance.

IMetaDataConverter::GetTypeLibFromMetaData Method

Gets a pointer to an ITypeLib instance that represents the type library that has the specified module and library names.

Requirements

Platform: Windows 2000, Windows XP, Windows Server 2003 family

Header: Cor.h

Library: Used as a resource in MsCorEE.dll

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Concepts

Metadata Interfaces

IMetaDataImport Interface