ProfileEventArgs.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 / WF / RunTime / Tracking / ProfileEventArgs.cs / 1305376 / ProfileEventArgs.cs

                            using System; 
using System.Collections;
using System.Collections.Generic;
using System.Workflow.ComponentModel;
using System.Runtime.Serialization; 
using System.Security.Permissions;
using System.Workflow.Runtime.Hosting; 
 
namespace System.Workflow.Runtime.Tracking
{ 
    /// 
    /// EventArgs for IProfileNotification.ProfileUpdated event.
    /// 
    public sealed class ProfileUpdatedEventArgs : EventArgs 
    {
        private TrackingProfile _profile = null; 
        private Type _workflowType = null; 

        public ProfileUpdatedEventArgs() { } 

        public ProfileUpdatedEventArgs(Type workflowType, TrackingProfile profile)
        {
            _workflowType = workflowType; 
            _profile = profile;
        } 
 
        public TrackingProfile TrackingProfile
        { 
            get { return _profile; }
            set { _profile = value; }
        }
 
        public Type WorkflowType
        { 
            get { return _workflowType; } 
            set { _workflowType = value; }
        } 
    }
    /// 
    /// EventArgs for IProfileNotification.ProfileRemoved event.
    ///  
    public sealed class ProfileRemovedEventArgs : EventArgs
    { 
        private Type _workflowType = null; 

        public ProfileRemovedEventArgs() { } 

        public ProfileRemovedEventArgs(Type workflowType)
        {
            _workflowType = workflowType; 
        }
 
        public Type WorkflowType 
        {
            get { return _workflowType; } 
            set { _workflowType = value; }
        }
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.


                        

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