Delen via


IMetaDataDispenserEx Interface

Extends the IMetaDataDispenser Interface interface to provide the capability to control how the metadata APIs operate on the current metadata scope.

interface IMetaDataDispenser : IUnknown {

    HRESULT FindAssembly(
        LPCWSTR  szAppBase,
        LPCWSTR  szPrivateBin,
        LPCWSTR  szGlobalBin,
        LPCWSTR  szAssemblyName,
        LPCWSTR  szName,
        ULONG    cchName,
        ULONG    *pcName
    );

    HRESULT FindAssemblyModule (
        LPCWSTR  szAppBase,
        LPCWSTR  szPrivateBin,
        LPCWSTR  szGlobalBin,
        LPCWSTR  szAssemblyName,
        LPCWSTR  szModuleName,
        LPCWSTR  szName,
        ULONG    cchName,
        ULONG    *pcName
    );

    HRESULT GetCORSystemDirectory (
        LPWSTR      szBuffer, 
        DWORD       cchBuffer, 
        DWORD*      pchBuffer
    );

    HRESULT GetOption (
        REFGUID optionId, 
        const VARIANT *pvalue
    );

    HRESULT OpenScopeOnITypeInfo (
        ITypeInfo   *pITI,
        DWORD       dwOpenFlags,
        REFIID      riid,
        IUnknown    **ppIUnk
    );

    HRESULT SetOption (
        REFGUID optionId, 
        const VARIANT *pvalue
    );

Methods

Method

Description

IMetaDataDispenserEx::FindAssembly Method

This method is not implemented. If called, it returns E_NOTIMPL.

IMetaDataDispenserEx::FindAssemblyModule Method

This method is not implemented. If called, it returns E_NOTIMPL.

IMetaDataDispenserEx::GetCORSystemDirectory Method

Gets the directory that holds the current common language runtime (CLR). This method is supported only for use by out-of-process debuggers. If called from another component, it will return E_NOTIMPL.

IMetaDataDispenserEx::GetOption Method

Gets the value of the specified option for the current metadata scope. The option controls how calls to the current metadata scope are handled.

IMetaDataDispenserEx::OpenScopeOnITypeInfo Method

This method is not implemented. If called, it returns E_NOTIMPL.

IMetaDataDispenserEx::SetOption Method

Sets the specified option to a given value for the current metadata scope. The option controls how calls to the current metadata scope are handled.

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

IMetaDataDispenser Interface

IMetaDataEmit Interface

IMetaDataImport Interface

Other Resources

Metadata Interfaces