DefaultBindingPropertyAttribute 建構函式

定義

初始化 DefaultBindingPropertyAttribute 類別的新執行個體。

多載

DefaultBindingPropertyAttribute()

不使用參數來初始化 DefaultBindingPropertyAttribute 類別的新執行個體。

DefaultBindingPropertyAttribute(String)

初始化使用指定的屬性名稱之 DefaultBindingPropertyAttribute 類別的新執行個體。

DefaultBindingPropertyAttribute()

來源:
DefaultBindingPropertyAttribute.cs
來源:
DefaultBindingPropertyAttribute.cs
來源:
DefaultBindingPropertyAttribute.cs

不使用參數來初始化 DefaultBindingPropertyAttribute 類別的新執行個體。

C#
public DefaultBindingPropertyAttribute ();

備註

沒有參數建構函式會將 Name 屬性設定為 null

另請參閱

適用於

.NET 9 及其他版本
產品 版本
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

DefaultBindingPropertyAttribute(String)

來源:
DefaultBindingPropertyAttribute.cs
來源:
DefaultBindingPropertyAttribute.cs
來源:
DefaultBindingPropertyAttribute.cs

初始化使用指定的屬性名稱之 DefaultBindingPropertyAttribute 類別的新執行個體。

C#
public DefaultBindingPropertyAttribute (string name);
C#
public DefaultBindingPropertyAttribute (string? name);

參數

name
String

預設繫結屬性的名稱。

備註

這個建構函式會將 Name 屬性設定為 參數的值 name

另請參閱

適用於

.NET 9 及其他版本
產品 版本
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1