.NET Framework Class Library
Variable Class
The abstract base class from which the workflow data member support class Variable<T> derives.
Inheritance Hierarchy
System.Object
System.Activities.LocationReference
System.Activities.Variable
System.Activities.Variable<T>
Namespace: System.Activities
Assembly: System.Activities (in System.Activities.dll)
Syntax
Visual Basic
Public MustInherit Class Variable _ Inherits LocationReference
C#
public abstract class Variable : LocationReference
Visual C++
public ref class Variable abstract : public LocationReference
F#
[<AbstractClass>] type Variable = class inherit LocationReference end
The Variable type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
|
Default | Gets or sets the ActivityWithResult that represents the default value for this Variable. |
|
Modifiers | Gets or sets the VariableModifiers value for this Variable. |
|
Name | Gets or sets the name of the Variable. |
|
NameCore | Gets the name of the Variable. (Overrides LocationReference.NameCore.) |
|
Type | Gets or sets the type of the LocationReference. (Inherited from LocationReference.) |
|
TypeCore | When implemented in a derived class, gets or sets the culturally localized version of the type of the LocationReference. (Inherited from LocationReference.) |
Methods
| Name | Description | |
|---|---|---|
|
Create | Initializes and returns new instance of the Variable class. |
|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
Get | Gets the value of the Variable using the specified ActivityContext. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetLocation | Gets the Location for this Variable. (Overrides LocationReference.GetLocation(ActivityContext).) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Set | Sets the value of the Variable using the specified ActivityContext. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Version Information
.NET Framework
Supported in: 4.NET Framework Client Profile
Supported in: 4Platforms
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.See Also