IMetaDataEmit::DefineParam Method
Creates a parameter definition with the specified signature for the method referenced by the specified token, and gets a token for that parameter definition.
HRESULT DefineParam (
[in] mdMethodDef md,
[in] ULONG ulParamSeq,
[in] LPCWSTR szName,
[in] DWORD dwParamFlags,
[in] DWORD dwCPlusTypeFlag,
[in] void const *pValue,
[in] ULONG cchValue,
[out] mdParamDef *ppd
);
Parameters
Parameter | Description |
---|---|
md |
[in] The token for the method whose parameter is being defined. |
ulParamSeq |
[in] The parameter sequence number. |
szName |
[in] The name of the parameter in Unicode. |
dwParamFlags |
[in] Flags for the parameter. |
dwCPlusTypeFlag |
[in] ELEMENT_TYPE_* for the constant value. |
pValue |
[in] The constant value for the parameter. |
cchValue |
[in] The size, in Unicode characters, of pValue. |
ppd |
[out] The mdParamDef token assigned. |
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, 1.1, 1.0