ProvidePropertyAttribute Constructors

Definition

Initializes a new instance of the ProvidePropertyAttribute class.

Overloads

ProvidePropertyAttribute(String, String)

Initializes a new instance of the ProvidePropertyAttribute class with the name of the property and the type of its receiver.

ProvidePropertyAttribute(String, Type)

Initializes a new instance of the ProvidePropertyAttribute class with the name of the property and its Type.

ProvidePropertyAttribute(String, String)

Source:
ProvidePropertyAttribute.cs
Source:
ProvidePropertyAttribute.cs
Source:
ProvidePropertyAttribute.cs

Initializes a new instance of the ProvidePropertyAttribute class with the name of the property and the type of its receiver.

C#
public ProvidePropertyAttribute(string propertyName, string receiverTypeName);

Parameters

propertyName
String

The name of the property extending to an object of the specified type.

receiverTypeName
String

The name of the data type this property can extend.

Applies to

.NET 10 a ďalšie verzie
Produkt Verzie
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 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

ProvidePropertyAttribute(String, Type)

Source:
ProvidePropertyAttribute.cs
Source:
ProvidePropertyAttribute.cs
Source:
ProvidePropertyAttribute.cs

Initializes a new instance of the ProvidePropertyAttribute class with the name of the property and its Type.

C#
public ProvidePropertyAttribute(string propertyName, Type receiverType);

Parameters

propertyName
String

The name of the property extending to an object of the specified type.

receiverType
Type

The Type of the data type of the object that can receive the property.

Applies to

.NET 10 a ďalšie verzie
Produkt Verzie
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 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