Variable Class (System.Activities)

Switch View :
ScriptFree
.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
Public property Default Gets or sets the ActivityWithResult that represents the default value for this Variable.
Public property Modifiers Gets or sets the VariableModifiers value for this Variable.
Public property Name Gets or sets the name of the Variable.
Protected property NameCore Gets the name of the Variable. (Overrides LocationReference.NameCore.)
Public property Type Gets or sets the type of the LocationReference. (Inherited from LocationReference.)
Protected property TypeCore When implemented in a derived class, gets or sets the culturally localized version of the type of the LocationReference. (Inherited from LocationReference.)
Top
Methods

  Name Description
Public method Static member Create Initializes and returns new instance of the Variable class.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Get Gets the value of the Variable using the specified ActivityContext.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLocation Gets the Location for this Variable. (Overrides LocationReference.GetLocation(ActivityContext).)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Set Sets the value of the Variable using the specified ActivityContext.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Version Information

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4
Platforms

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

Reference