Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / ExitEventArgs.cs / 1305600 / ExitEventArgs.cs
//----------------------------------------------------------------------------
// File: ExitEventArgs.cs
//
// Copyright (C) 2004 by Microsoft Corporation. All rights reserved.
//
// Description:
// This event will be called after Shutdown has been called.
//
// The developer will hook this event if they want to take action
// when the application exits.
//
// History:
// 08/10/04: kusumav Moved out of Application.cs to its own separate file.
// 05/09/05: hamidm Created ExitEventArgs.cs and renamed ShuttingDownEventArgs
// to ExitEventArgs
//
//---------------------------------------------------------------------------
namespace System.Windows
{
///
/// Event args for the Exit event
///
public class ExitEventArgs : EventArgs
{
internal int _exitCode;
///
/// constructor
///
internal ExitEventArgs(int exitCode)
{
_exitCode = exitCode;
}
///
/// Get and set the exit code to be returned by this application
///
public int ApplicationExitCode
{
get { return _exitCode; }
set { _exitCode = value; }
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//----------------------------------------------------------------------------
// File: ExitEventArgs.cs
//
// Copyright (C) 2004 by Microsoft Corporation. All rights reserved.
//
// Description:
// This event will be called after Shutdown has been called.
//
// The developer will hook this event if they want to take action
// when the application exits.
//
// History:
// 08/10/04: kusumav Moved out of Application.cs to its own separate file.
// 05/09/05: hamidm Created ExitEventArgs.cs and renamed ShuttingDownEventArgs
// to ExitEventArgs
//
//---------------------------------------------------------------------------
namespace System.Windows
{
///
/// Event args for the Exit event
///
public class ExitEventArgs : EventArgs
{
internal int _exitCode;
///
/// constructor
///
internal ExitEventArgs(int exitCode)
{
_exitCode = exitCode;
}
///
/// Get and set the exit code to be returned by this application
///
public int ApplicationExitCode
{
get { return _exitCode; }
set { _exitCode = value; }
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ParsedAttributeCollection.cs
- HttpCookieCollection.cs
- CapabilitiesPattern.cs
- AccessText.cs
- LayoutEngine.cs
- DataContext.cs
- Bits.cs
- TableSectionStyle.cs
- PagedControl.cs
- TdsEnums.cs
- DataGridViewAutoSizeModeEventArgs.cs
- RenderingBiasValidation.cs
- Activator.cs
- COSERVERINFO.cs
- JoinElimination.cs
- WeakReferenceEnumerator.cs
- DocComment.cs
- ToolStripSeparator.cs
- Thumb.cs
- BulletedList.cs
- MailMessageEventArgs.cs
- ExpressionBindingCollection.cs
- MessagePropertyAttribute.cs
- ListControl.cs
- CompilerGlobalScopeAttribute.cs
- ScrollableControl.cs
- Button.cs
- WebPartMovingEventArgs.cs
- XmlSchemaChoice.cs
- ImpersonationContext.cs
- ObjectDataSourceSelectingEventArgs.cs
- FixedSOMSemanticBox.cs
- Padding.cs
- SecUtil.cs
- SrgsRulesCollection.cs
- MinimizableAttributeTypeConverter.cs
- BitmapPalette.cs
- CodeConditionStatement.cs
- DoubleLink.cs
- ImageKeyConverter.cs
- OneToOneMappingSerializer.cs
- UnsafeNativeMethods.cs
- SizeChangedInfo.cs
- XmlSchemaAll.cs
- IdentitySection.cs
- BitVector32.cs
- AutoGeneratedField.cs
- ObjectContext.cs
- CqlLexer.cs
- XPathDocument.cs
- ContainsRowNumberChecker.cs
- WorkflowPersistenceService.cs
- XmlDataSource.cs
- UTF32Encoding.cs
- BitmapImage.cs
- UriTemplateDispatchFormatter.cs
- Socket.cs
- ContextMenuService.cs
- MatrixAnimationUsingPath.cs
- DBConnection.cs
- MbpInfo.cs
- WindowsSlider.cs
- SemanticBasicElement.cs
- Calendar.cs
- PointConverter.cs
- ParallelActivityDesigner.cs
- FixedHyperLink.cs
- _NetworkingPerfCounters.cs
- cookie.cs
- DeflateEmulationStream.cs
- EventTask.cs
- ProjectionNode.cs
- MouseGesture.cs
- SurrogateEncoder.cs
- DocumentScope.cs
- NotImplementedException.cs
- CodeGen.cs
- CompressionTransform.cs
- WebRequest.cs
- ManagementObject.cs
- MapPathBasedVirtualPathProvider.cs
- XPathParser.cs
- WebDescriptionAttribute.cs
- SimpleTypeResolver.cs
- ElementHostAutomationPeer.cs
- SqlVersion.cs
- MenuAdapter.cs
- ErrorRuntimeConfig.cs
- MdiWindowListStrip.cs
- graph.cs
- Cursor.cs
- TrackBar.cs
- MarkupCompilePass1.cs
- InkCanvasAutomationPeer.cs
- ActivityInfo.cs
- TraceInternal.cs
- ContentType.cs
- MetadataItemSerializer.cs
- VariableQuery.cs
- EntitySqlQueryCacheKey.cs