TypeBuilder.SetCustomAttribute 메서드

정의

사용자 지정 특성을 설정합니다.

오버로드

Name Description
SetCustomAttribute(CustomAttributeBuilder)

사용자 지정 특성 작성기를 사용하여 사용자 지정 특성을 설정합니다.

SetCustomAttribute(ConstructorInfo, Byte[])

지정된 사용자 지정 특성 Blob을 사용하여 사용자 지정 특성을 설정합니다.

SetCustomAttribute(CustomAttributeBuilder)

Source:
TypeBuilder.cs
Source:
TypeBuilder.cs
Source:
TypeBuilder.cs
Source:
TypeBuilder.cs
Source:
TypeBuilder.cs

사용자 지정 특성 작성기를 사용하여 사용자 지정 특성을 설정합니다.

public:
 void SetCustomAttribute(System::Reflection::Emit::CustomAttributeBuilder ^ customBuilder);
public void SetCustomAttribute(System.Reflection.Emit.CustomAttributeBuilder customBuilder);
member this.SetCustomAttribute : System.Reflection.Emit.CustomAttributeBuilder -> unit
Public Sub SetCustomAttribute (customBuilder As CustomAttributeBuilder)

매개 변수

customBuilder
CustomAttributeBuilder

사용자 지정 특성을 정의하는 도우미 클래스의 인스턴스입니다.

예외

customBuildernull입니다.

현재 동적 형식의 IsGenericType 경우 속성은 true이지만 IsGenericTypeDefinition 속성은 false.

적용 대상

SetCustomAttribute(ConstructorInfo, Byte[])

Source:
TypeBuilder.cs
Source:
TypeBuilder.cs
Source:
TypeBuilder.cs
Source:
TypeBuilder.cs
Source:
TypeBuilder.cs

지정된 사용자 지정 특성 Blob을 사용하여 사용자 지정 특성을 설정합니다.

public:
 void SetCustomAttribute(System::Reflection::ConstructorInfo ^ con, cli::array <System::Byte> ^ binaryAttribute);
public void SetCustomAttribute(System.Reflection.ConstructorInfo con, byte[] binaryAttribute);
[System.Runtime.InteropServices.ComVisible(true)]
public void SetCustomAttribute(System.Reflection.ConstructorInfo con, byte[] binaryAttribute);
member this.SetCustomAttribute : System.Reflection.ConstructorInfo * byte[] -> unit
[<System.Runtime.InteropServices.ComVisible(true)>]
member this.SetCustomAttribute : System.Reflection.ConstructorInfo * byte[] -> unit
Public Sub SetCustomAttribute (con As ConstructorInfo, binaryAttribute As Byte())

매개 변수

con
ConstructorInfo

사용자 지정 특성의 생성자입니다.

binaryAttribute
Byte[]

특성을 나타내는 바이트 Blob입니다.

특성

예외

con 또는 binaryAttribute .입니다 null.

현재 동적 형식의 IsGenericType 경우 속성은 true이지만 IsGenericTypeDefinition 속성은 false.

설명

서식을 지정 binaryAttribute하는 방법에 대한 자세한 내용은 ECMA C# 및 공용 언어 인프라 표준표준 ECMA-335 - CLI(공용 언어 인프라)를 참조하세요.

적용 대상