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

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

Uygulamalar

Öznitelikler

Açıklamalar

Note

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

Şunlara uygulanır

Ayrıca bkz.