다음을 통해 공유


IMetaDataEmit2 Interface

Extends the IMetaDataEmit interface primarily to provide the ability to work with generic types.

interface IMetaDataEmit2 : IMetaDataEmit {
        
    HRESULT DefineGenericParam ( 
        mdToken          tk, 
        ULONG            ulParamSeq, 
        DWORD            dwParamFlags, 
        LPCWSTR          szname, 
        DWORD            reserved, 
        mdToken          rtkConstraints[], 
        mdGenericParam   *pgp
    );
        
    HRESULT DefineMethodSpec (
        mdToken          tkParent, 
        PCCOR_SIGNATURE  pvSigBlob, 
        ULONG            cbSigBlob, 
        mdMethodSpec     *pmi
    );
        
    HRESULT GetDeltaSaveSize (
        CorSaveSize      fSave,
        DWORD            *pdwSaveSize
    );
        
    HRESULT ResetENCLog ();
        
    HRESULT SaveDelta (
        LPCWSTR          szFile, 
        DWORD            dwSaveFlags
    );
        
    HRESULT SaveDeltaToMemory (
        void             *pbData, 
        ULONG            cbData
    );
        
    HRESULT SaveDeltaToStream (
        IStream          *pIStream, 
                DWORD            dwSaveFlags
    );
        
    HRESULT SetGenericParamProps (
        mdGenericParam   gp, 
                DWORD            dwParamFlags, 
        LPCWSTR          szName, 
        DWORD            reserved, 
        mdToken          rtkConstraints[]
    );
        
};

Methods

Method

Description

IMetaDataEmit2::DefineGenericParam Method

Creates a definition for a generic type parameter, and gets a token to that generic type parameter.

IMetaDataEmit2::DefineMethodSpec Method

Creates a generic instance of a method, and gets a token to the definition.

IMetaDataEmit2::GetDeltaSaveSize Method

Gets a value indicating the difference in size of the data that is required to express the changes for the current edit-and-continue session.

IMetaDataEmit2::ResetENCLog Method

Resets the edit-and-continue log and starts a new session.

IMetaDataEmit2::SaveDelta Method

Saves changes from the current edit-and-continue session to the specified file.

IMetaDataEmit2::SaveDeltaToMemory Method

Saves changes from the current edit-and-continue session to memory.

IMetaDataEmit2::SaveDeltaToStream Method

Saves changes from the current edit-and-continue session to the specified stream.

IMetaDataEmit2::SetGenericParamProps Method

Sets property values for the generic parameter definition referenced by the specified token.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: Cor.h

Library: Used as a resource in MsCorEE.dll

.NET Framework Version: 2.0

See Also

Concepts

Metadata Interfaces

IMetaDataEmit Interface