NativeActivityContext.SetValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public:
void SetValue(System::Activities::Variable ^ variable, System::Object ^ value);
public void SetValue (System.Activities.Variable variable, object value);
override this.SetValue : System.Activities.Variable * obj -> unit
Public Sub SetValue (variable As Variable, value As Object)
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
SetValue<T>(Variable<T>, T)
Assigns the specified generic value object to the specified generic variable object.
public:
generic <typename T>
void SetValue(System::Activities::Variable<T> ^ variable, T value);
public void SetValue<T> (System.Activities.Variable<T> variable, T value);
override this.SetValue : System.Activities.Variable<'T> * 'T -> unit
Public Sub SetValue(Of T) (variable As Variable(Of T), value As T)
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
الملاحظات
https://aka.ms/ContentUserFeedback.
قريبًا: خلال عام 2024، سنتخلص تدريجيًا من GitHub Issues بوصفها آلية إرسال ملاحظات للمحتوى ونستبدلها بنظام ملاحظات جديد. لمزيد من المعلومات، راجعإرسال الملاحظات وعرضها المتعلقة بـ