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
Samarbejd med os på GitHub
Kilden til dette indhold kan findes på GitHub, hvor du også kan oprette og gennemse problemer og pullanmodninger. Du kan få flere oplysninger i vores vejledning til bidragydere.