Share via


IMetaDataEmit::SetCustomAttributeValue Method

Sets or updates the value of a custom attribute defined by a prior call to IMetaDataEmit::DefineCustomAttribute Method.

HRESULT SetCustomAttributeValue ( 
    [in]  mdCustomAttribute       pcv, 
    [in]  void const              *pCustomAttribute,  
    [in]  ULONG                   cbCustomAttribute 
);

Parameters

Parameter Description

pcv

[in] The token of the target custom attribute.

pCustomAttribute

[in] A pointer to the array that contains the custom attribute.

cbCustomAttribute

[in] The size, in bytes, of the custom attribute.

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

See Also

Reference

IMetaDataEmit Interface
IMetaDataEmit2 Interface