Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IMetaDataDispenser Interface

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



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.

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

Community Additions

© 2015 Microsoft