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: See .NET Framework System Requirements.

Header: Cor.h

Library: Used as a resource in MsCorEE.dll

.NET Framework Versions: 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

See Also

Reference

IMetaDataImport Interface

Other Resources

Metadata Interfaces