Delen via


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: 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

IMetaDataDispenserEx Interface

Other Resources

Metadata Interfaces