नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
Creates a definition for a custom attribute with the specified metadata signature, to be attached to the specified object, and gets a token to that custom attribute definition.
Syntax
HRESULT DefineCustomAttribute (
[in] mdToken tkObj,
[in] mdToken tkType,
[in] void const *pCustomAttribute,
[in] ULONG cbCustomAttribute,
[out] mdCustomAttribute *pcv
);
Parameters
tkObj
[in] The token for the owner item.
tkType
[in] The token that identifies the custom attribute.
pCustomAttribute
[in] A pointer to the custom attribute.
cbCustomAttribute
[in] The count of bytes in pCustomAttribute.
pcv
[out] The mdCustomAttribute token assigned.
Requirements
Platforms: See .NET supported operating systems.
Header: Cor.h
Library: CorGuids.lib