TypeBuilder.SetCustomAttributeCore 方法

定義

在衍生類別中覆寫時,在此元件上設定自訂屬性。

protected:
 abstract void SetCustomAttributeCore(System::Reflection::ConstructorInfo ^ con, ReadOnlySpan<System::Byte> binaryAttribute);
protected abstract void SetCustomAttributeCore (System.Reflection.ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute);
abstract member SetCustomAttributeCore : System.Reflection.ConstructorInfo * ReadOnlySpan<byte> -> unit
Protected MustOverride Sub SetCustomAttributeCore (con As ConstructorInfo, binaryAttribute As ReadOnlySpan(Of Byte))

參數

con
ConstructorInfo

自訂屬性的建構函式。

binaryAttribute
ReadOnlySpan<Byte>

ReadOnlySpan<T>表示 屬性之位元組的 。

適用於