Прочетете на английски Редактиране

Споделяне чрез


ExecutionProperties.Add Method

Definition

Registers a new property.

Overloads

Add(String, Object)

Registers a new property using the specified name.

Add(String, Object, Boolean)

Registers a property using the specified name and child visibility.

Add(String, Object)

Registers a new property using the specified name.

C#
public void Add(string name, object property);

Parameters

name
String

The name of the property.

property
Object

The object that represents the property.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 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

Add(String, Object, Boolean)

Registers a property using the specified name and child visibility.

C#
public void Add(string name, object property, bool onlyVisibleToPublicChildren);

Parameters

name
String

The name of the property.

property
Object

The object that represents the property.

onlyVisibleToPublicChildren
Boolean

A value that determines whether this property is visible to the children of the owning activity.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 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