ConstructorBuilder.SetCustomAttributeCore 方法

定义

在派生类中重写时,在此构造函数上设置自定义属性。

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

参数

con
ConstructorInfo

自定义属性的构造函数。

binaryAttribute
ReadOnlySpan<Byte>

表示 ReadOnlySpan<T> 属性的字节的 。

适用于

产品 版本
.NET 8, 9, 10