EmitAssemblyCustomAttribute Method
Call to set assembly-level custom attributes.
Syntax
HRESULT EmitAssemblyCustomAttribute(
mdAssembly AssemblyID,
mdToken FileToken,
mdToken tkType,
void const* pCustomValue,
DWORD cbCustomValue,
BOOL bSecurity,
BOOL bAllowMulti
) PURE;
Parameters
AssemblyID
ID of the assembly.
FileToken
File that defiles the attribute. Can be NULL if AssemblyID
does not indicate an unbound netmodule.
tkType
Type of the custom attribute.
pCustomValue
Custom value data.
cbCustomValue
Length of custom value data.
bSecurity
TRUE if the custom attribute is related to assembly signing.
bAllowMulti
TRUE if multiple attributes are to be emitted.
Return Value
Returns S_OK if the method succeeds.
Requirements
Requires alink.h
See also
Συνεργαστείτε μαζί μας στο GitHub
Μπορείτε να βρείτε την πηγή για αυτό το περιεχόμενο στο GitHub, όπου μπορείτε επίσης να δημιουργήσετε και να εξετάσετε ζητήματα και αιτήματα έλξης. Για περισσότερες πληροφορίες, ανατρέξτε στον οδηγό συνεργατών.