MethodBase.IsConstructor Özellik

Tanım

Yöntemin bir oluşturucu olup olmadığını belirten bir değer alır.

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

Özellik Değeri

Boolean

true Bu yöntem bir nesneyle ConstructorInfo temsil edilen bir oluşturucuysa (nesnelerle ilgili ConstructorBuilder notlar bölümüne bakın); aksi takdirde , false.

Uygulamalar

Öznitelikler

Açıklamalar

Not

IsConstructor Oluşturucu tanımlandığında parametresine bayrak eklenmediği MethodAttributes.RTSpecialName sürece, özelliği dinamik türdeki attributes bir ConstructorBuilder nesne için döndürürfalse. Bayrağın RTSpecialName atlanması, yayılan oluşturucunun doğruluğunu etkilemez.

Şunlara uygulanır

Ayrıca bkz.