Share via


IMetaDataEmit2::DefineMethodSpec Method

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

HRESULT DefineMethodSpec (
    mdToken           tkParent, 
    PCCOR_SIGNATURE   pvSigBlob, 
    ULONG             cbSigBlob, 
    mdMethodSpec      *pmi
);

Parameters

Parameter Description

tkParent

[in] A token for the method of which to create the generic instance. The token must be of type mdMethodDef or mdMemberRef.

pvSigBlob

[in] A pointer to the binary COM+ signature of the method.

cbSibBlob

[in] The size, in bytes, of pvSigBlob.

pmi

[out] A token to the metadata signature definition of the method.

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

Reference

IMetaDataEmit2 Interface
IMetaDataEmit Interface