다음을 통해 공유


IMetaDataDispenser Interface

Provides methods to create a new metadata scope, or open an existing one.

interface IMetaDataDispenser : IUnknown {
        
    HRESULT DefineScope (
        [in]  REFCLSID    rclsid,
        [in]  DWORD       dwCreateFlags,
        [in]  REFIID      riid, 
        [out] IUnknown    **ppIUnk
    );
        
    HRESULT OpenScope (
        [in]  LPCWSTR     szScope, 
                [in]  DWORD       dwOpenFlags, 
        [in]  REFIID      riid, 
                [out] IUnknown    **ppIUnk
    );
        
    HRESULT OpenScopeOnMemory (
        [in]  LPCVOID     pData, 
        [in]  ULONG       cbData, 
                [in]  DWORD       dwOpenFlags, 
        [in]  REFIID      riid, 
                [out] IUnknown    **ppIUnk
    );
        
};

Methods

Method

Description

IMetaDataDispenser::DefineScope Method

Creates a new area in memory where you can create new metadata.

IMetaDataDispenser::OpenScope Method

Opens an existing, on-disk file and maps its metadata into memory.

IMetaDataDispenser::OpenScopeOnMemory Method

Opens an area of memory that contains existing metadata. That is, this method opens a specified area of memory in which the existing data is treated as metadata.

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

IMetaDataDispenserEx Interface

Metadata Interfaces