Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- SplitContainer.cs
- SqlRemoveConstantOrderBy.cs
- ByteAnimationUsingKeyFrames.cs
- EncoderReplacementFallback.cs
- ButtonColumn.cs
- HttpModuleAction.cs
- WebRequestModulesSection.cs
- OracleCommandBuilder.cs
- COM2ExtendedUITypeEditor.cs
- DataSourceCacheDurationConverter.cs
- FontSource.cs
- Listbox.cs
- TypeBuilder.cs
- ListItemParagraph.cs
- CqlErrorHelper.cs
- TraversalRequest.cs
- SQLConvert.cs
- InvalidEnumArgumentException.cs
- ResourceDisplayNameAttribute.cs
- ValidatingReaderNodeData.cs
- Helper.cs
- EpmContentSerializerBase.cs
- CompleteWizardStep.cs
- EncryptedPackage.cs
- TypographyProperties.cs
- DataGridViewButtonCell.cs
- RootProfilePropertySettingsCollection.cs
- SubstitutionResponseElement.cs
- WebPartHeaderCloseVerb.cs
- IMembershipProvider.cs
- HtmlInputCheckBox.cs
- XamlParser.cs
- Ipv6Element.cs
- MsmqTransportSecurity.cs
- AssemblyBuilderData.cs
- TextFormatter.cs
- XamlSerializerUtil.cs
- AnchoredBlock.cs
- ToolboxItemCollection.cs
- EntityObject.cs
- TabletCollection.cs
- ThreadExceptionEvent.cs
- EventRouteFactory.cs
- EventBuilder.cs
- XmlLangPropertyAttribute.cs
- SourceInterpreter.cs
- DynamicValueConverter.cs
- IisTraceListener.cs
- ClientSponsor.cs
- ListBindableAttribute.cs
- UserNameServiceElement.cs
- FormViewInsertEventArgs.cs
- LoginCancelEventArgs.cs
- ToolStripItemDesigner.cs
- GrabHandleGlyph.cs
- PersonalizationStateInfo.cs
- AnnotationResource.cs
- SmuggledIUnknown.cs
- NetMsmqBinding.cs
- AutomationPropertyInfo.cs
- DefaultTraceListener.cs
- VarRefManager.cs
- DataGridItemCollection.cs
- returneventsaver.cs
- DataGridViewRowConverter.cs
- FormsAuthenticationConfiguration.cs
- PKCS1MaskGenerationMethod.cs
- DiscoveryInnerClientAdhoc11.cs
- QueryContinueDragEvent.cs
- UTF8Encoding.cs
- DataGridViewCheckBoxCell.cs
- DefaultValueTypeConverter.cs
- EntityContainer.cs
- QueryCacheManager.cs
- CalendarDay.cs
- TableAdapterManagerGenerator.cs
- Delegate.cs
- HandlerFactoryCache.cs
- WebPartDisplayModeEventArgs.cs
- CustomCategoryAttribute.cs
- ComboBox.cs
- WebPartCatalogCloseVerb.cs
- SchemaTableOptionalColumn.cs
- SystemColorTracker.cs
- DataGridViewButtonCell.cs
- AppModelKnownContentFactory.cs
- GridItemPatternIdentifiers.cs
- TextMetrics.cs
- AssemblyBuilder.cs
- TextParaClient.cs
- TemplateControlParser.cs
- FixedPageAutomationPeer.cs
- StrokeNodeData.cs
- DataGridViewColumnCollectionEditor.cs
- CacheRequest.cs
- PageAsyncTaskManager.cs
- AssemblyNameEqualityComparer.cs
- COAUTHIDENTITY.cs
- SqlXml.cs
- BaseCodePageEncoding.cs