ModuleBuilder.SetCustomAttributeCore Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

When overridden in a derived class, sets a custom attribute on this assembly.

C#
protected abstract void SetCustomAttributeCore(System.Reflection.ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute);

Parameters

con
ConstructorInfo

The constructor for the custom attribute.

binaryAttribute
ReadOnlySpan<Byte>

A ReadOnlySpan<T> of bytes representing the attribute.

Applies to

Product Versions
.NET 8, 9, 10