Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OleDbFactory.cs
- DataSvcMapFileSerializer.cs
- XmlCodeExporter.cs
- DesignerObject.cs
- SBCSCodePageEncoding.cs
- PlanCompilerUtil.cs
- RootBuilder.cs
- ApplicationFileParser.cs
- SqlWebEventProvider.cs
- SignatureDescription.cs
- CreateSequence.cs
- UndoManager.cs
- GeometryGroup.cs
- TransformProviderWrapper.cs
- SessionIDManager.cs
- RequestTimeoutManager.cs
- BuildProviderAppliesToAttribute.cs
- UrlMapping.cs
- BCLDebug.cs
- DynamicMethod.cs
- FileSecurity.cs
- DefaultSerializationProviderAttribute.cs
- DSASignatureFormatter.cs
- Panel.cs
- CompressedStack.cs
- TimerEventSubscription.cs
- HistoryEventArgs.cs
- EventItfInfo.cs
- ProofTokenCryptoHandle.cs
- EncryptedData.cs
- BulletDecorator.cs
- SqlTransaction.cs
- SqlXml.cs
- ICspAsymmetricAlgorithm.cs
- DefaultEventAttribute.cs
- SetStoryboardSpeedRatio.cs
- Evidence.cs
- DataGridCellAutomationPeer.cs
- HtmlButton.cs
- ChannelSinkStacks.cs
- GridViewCommandEventArgs.cs
- ConnectionStringSettingsCollection.cs
- DataGridViewBand.cs
- PageFunction.cs
- ExpressionWriter.cs
- ActiveXSite.cs
- RemotingServices.cs
- Fx.cs
- ToolStripSystemRenderer.cs
- QuadraticBezierSegment.cs
- UnsafeNativeMethods.cs
- XmlSerializableReader.cs
- EdmSchemaAttribute.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- DataGridRowHeader.cs
- PageCatalogPart.cs
- SystemResourceHost.cs
- ForEachAction.cs
- RuntimeIdentifierPropertyAttribute.cs
- SizeAnimationBase.cs
- DocumentGridContextMenu.cs
- GrammarBuilderPhrase.cs
- ConfigUtil.cs
- ReadOnlyHierarchicalDataSource.cs
- SizeChangedInfo.cs
- XmlEncodedRawTextWriter.cs
- DelegatingTypeDescriptionProvider.cs
- ElapsedEventArgs.cs
- AsyncCompletedEventArgs.cs
- RequiredFieldValidator.cs
- BamlLocalizableResource.cs
- NoClickablePointException.cs
- SqlClientWrapperSmiStream.cs
- HyperLink.cs
- Comparer.cs
- SystemDropShadowChrome.cs
- GuidConverter.cs
- IdnElement.cs
- SmtpDateTime.cs
- OdbcConnection.cs
- PageAdapter.cs
- XLinq.cs
- AtomServiceDocumentSerializer.cs
- SqlFunctions.cs
- ElementMarkupObject.cs
- HandlerFactoryWrapper.cs
- InputScope.cs
- ComponentCommands.cs
- StackOverflowException.cs
- SystemNetHelpers.cs
- JoinGraph.cs
- MenuItem.cs
- storepermission.cs
- ByteStreamMessage.cs
- CodeExpressionStatement.cs
- DbConnectionInternal.cs
- CommonDialog.cs
- WeakReferenceEnumerator.cs
- QilReplaceVisitor.cs
- DataServiceRequestOfT.cs