नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
Creates a parameter definition with the specified signature for the method referenced by the specified token, and gets a token for that parameter definition.
Syntax
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
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. This is a bitmask of CorParamAttr values.
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.
Remarks
The sequence values in ulParamSeq begin with 1 for parameters. A return value has a sequence number of 0.
Requirements
Platforms: See .NET supported operating systems.
Header: Cor.h
Library: CorGuids.lib