MethodBase.IsConstructor 속성

정의

메서드가 생성자인지 여부를 나타내는 값을 가져옵니다.

public:
 property bool IsConstructor { bool get(); };
public bool IsConstructor { get; }
[System.Runtime.InteropServices.ComVisible(true)]
public bool IsConstructor { get; }
member this.IsConstructor : bool
[<System.Runtime.InteropServices.ComVisible(true)>]
member this.IsConstructor : bool
Public ReadOnly Property IsConstructor As Boolean

속성 값

Boolean

이 메서드가 ConstructorInfo 개체가 나타내는 생성자이면 true이고(ConstructorBuilder 개체에 대한 설명 부분 참조), 그렇지 않으면 false입니다.

구현

특성

설명

참고

IsConstructor 생성자가 정의되었을 때 플래그가 매개 변수에 포함되지 않는 한 MethodAttributes.RTSpecialName 속성은 동적 형식의 attributes 개체에 대해 ConstructorBuilder 반환 false 됩니다. 플래그를 RTSpecialName 생략해도 내보낸 생성자의 정확성에 영향을 주지 않습니다.

적용 대상

추가 정보