Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / System / Windows / ExitEventArgs.cs / 1 / 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
- RolePrincipal.cs
- SelectionHighlightInfo.cs
- MarkupWriter.cs
- BuildResult.cs
- InputScope.cs
- ExpressionList.cs
- FontFamily.cs
- FixUpCollection.cs
- DefaultAuthorizationContext.cs
- Int32KeyFrameCollection.cs
- EditorPartChrome.cs
- IisTraceWebEventProvider.cs
- SessionPageStatePersister.cs
- GradientBrush.cs
- Vector3DAnimation.cs
- DataSourceHelper.cs
- SaveFileDialog.cs
- ComboBoxRenderer.cs
- _Rfc2616CacheValidators.cs
- XPathCompileException.cs
- Int16Storage.cs
- FixedSOMTable.cs
- DbInsertCommandTree.cs
- TextBox.cs
- CompositeKey.cs
- CookieProtection.cs
- ResourceSet.cs
- TextEditorParagraphs.cs
- ScriptControl.cs
- PropertyEmitterBase.cs
- SchemaImporterExtensionElement.cs
- PasswordBoxAutomationPeer.cs
- ReadOnlyDictionary.cs
- Function.cs
- SqlInternalConnectionTds.cs
- DiagnosticsConfiguration.cs
- PriorityItem.cs
- CheckBoxBaseAdapter.cs
- EncryptedData.cs
- CommandConverter.cs
- HandleRef.cs
- ManualResetEventSlim.cs
- CipherData.cs
- QilDataSource.cs
- CheckBox.cs
- TreeNodeBindingCollection.cs
- EventLogger.cs
- DefaultExpression.cs
- MarginCollapsingState.cs
- UserNameSecurityTokenAuthenticator.cs
- DiagnosticStrings.cs
- Currency.cs
- ColorContext.cs
- SettingsProviderCollection.cs
- relpropertyhelper.cs
- WindowsPrincipal.cs
- DefaultPropertyAttribute.cs
- TransformationRules.cs
- WpfSharedXamlSchemaContext.cs
- WmpBitmapDecoder.cs
- ProcessHostFactoryHelper.cs
- HyperLinkStyle.cs
- ElementFactory.cs
- DataListItem.cs
- DataGridViewUtilities.cs
- SmiContextFactory.cs
- IgnoreFileBuildProvider.cs
- StateDesigner.cs
- ToolboxCategory.cs
- DataTableNewRowEvent.cs
- RSAOAEPKeyExchangeFormatter.cs
- AnnotationHighlightLayer.cs
- EntryPointNotFoundException.cs
- FormCollection.cs
- Variable.cs
- PeerTransportElement.cs
- XmlConverter.cs
- DesignerLinkAdapter.cs
- OracleConnection.cs
- EdmItemCollection.cs
- CorrelationTokenInvalidatedHandler.cs
- Registry.cs
- Executor.cs
- DispatcherOperation.cs
- XmlLoader.cs
- SystemColors.cs
- DataPagerFieldCommandEventArgs.cs
- QilReference.cs
- DataGridViewTextBoxColumn.cs
- MessageUtil.cs
- GridViewColumnHeader.cs
- InstanceData.cs
- DataFieldConverter.cs
- Int32AnimationBase.cs
- TextFormatterImp.cs
- PasswordDeriveBytes.cs
- FocusWithinProperty.cs
- Geometry3D.cs
- ShellProvider.cs
- BindingExpressionUncommonField.cs