ActivityStateQuery.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.Activities / System / Activities / Tracking / ActivityStateQuery.cs / 1305376 / ActivityStateQuery.cs

                            //------------------------------------------------------------ 
// Copyright (c) Microsoft Corporation.  All rights reserved.
//-----------------------------------------------------------

namespace System.Activities.Tracking 
{
    using System.Collections.ObjectModel; 
 
    public class ActivityStateQuery : TrackingQuery
    { 
        Collection arguments;
        Collection states;
        Collection variables;
 
        public ActivityStateQuery()
        { 
            this.ActivityName = "*"; 
        }
 
        public string ActivityName
        {
            get;
            set; 
        }
 
        public Collection Arguments 
        {
            get 
            {
                if (this.arguments == null)
                {
                    this.arguments = new Collection(); 
                }
 
                return this.arguments; 
            }
        } 

        public Collection Variables
        {
            get 
            {
                if (this.variables == null) 
                { 
                    this.variables = new Collection();
                } 

                return this.variables;
            }
        } 

        public Collection States 
        { 
            get
            { 
                if (this.states == null)
                {
                    this.states = new Collection();
                } 
                return this.states;
            } 
        } 

        internal bool HasStates 
        {
            get
            {
                return this.states != null && this.states.Count > 0; 
            }
        } 
 
        internal bool HasArguments
        { 
            get
            {
                return this.arguments != null && this.arguments.Count > 0;
            } 
        }
 
        internal bool HasVariables 
        {
            get 
            {
                return this.variables != null && this.variables.Count > 0;
            }
        } 
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK