اقرأ باللغة الإنجليزية تحرير

مشاركة عبر


NativeActivityContext.SetValue Method

Definition

Overloads

SetValue(Variable, Object)

Assigns the specified value object to the specified variable object.

SetValue<T>(Variable<T>, T)

Assigns the specified generic value object to the specified generic variable object.

SetValue(Variable, Object)

Assigns the specified value object to the specified variable object.

C#
public void SetValue(System.Activities.Variable variable, object value);

Parameters

variable
Variable

A variable object without a specified type that can be assigned a value object.

value
Object

An object without a specified type that can be assigned to a variable object.

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

SetValue<T>(Variable<T>, T)

Assigns the specified generic value object to the specified generic variable object.

C#
public void SetValue<T>(System.Activities.Variable<T> variable, T value);

Type Parameters

T

The type of the variable and value.

Parameters

variable
Variable<T>

A variable object with a specified type that can be assigned a value object.

value
T

An object with a specified type that can be assigned to a variable object.

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