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
- WebHttpSecurityModeHelper.cs
- UserPreferenceChangedEventArgs.cs
- FieldAccessException.cs
- StylesEditorDialog.cs
- AmbientLight.cs
- RevocationPoint.cs
- ConnectionPoolManager.cs
- LineVisual.cs
- PackageRelationshipCollection.cs
- MenuAdapter.cs
- FilterElement.cs
- TemplateBindingExtension.cs
- NativeActivityFaultContext.cs
- HttpCacheVary.cs
- ObjectViewListener.cs
- XmlDigitalSignatureProcessor.cs
- Stopwatch.cs
- ErrorProvider.cs
- Bitmap.cs
- WebRequestModuleElement.cs
- ProcessInfo.cs
- Lookup.cs
- ZoneIdentityPermission.cs
- PropertyStore.cs
- PropertyManager.cs
- ContourSegment.cs
- UTF7Encoding.cs
- DropShadowEffect.cs
- ExtenderControl.cs
- Error.cs
- Button.cs
- MetadataCache.cs
- hebrewshape.cs
- IntranetCredentialPolicy.cs
- HtmlEncodedRawTextWriter.cs
- WebPartConnectionsCancelEventArgs.cs
- FlatButtonAppearance.cs
- GridView.cs
- KeyValueConfigurationCollection.cs
- AuthenticationConfig.cs
- CallSite.cs
- StorageMappingItemCollection.cs
- securitycriticaldata.cs
- FacetDescriptionElement.cs
- JsonFaultDetail.cs
- TextContainerChangeEventArgs.cs
- DataGridAddNewRow.cs
- AutomationEvent.cs
- SchemaLookupTable.cs
- ItemCheckedEvent.cs
- UnaryNode.cs
- CommandDevice.cs
- XmlSchemaValidator.cs
- StickyNoteContentControl.cs
- Semaphore.cs
- ICspAsymmetricAlgorithm.cs
- TransformationRules.cs
- MergePropertyDescriptor.cs
- XPathDescendantIterator.cs
- PackageRelationshipCollection.cs
- SystemFonts.cs
- IWorkflowDebuggerService.cs
- ControlAdapter.cs
- RouteItem.cs
- ResolvedKeyFrameEntry.cs
- PropertyDescriptorGridEntry.cs
- GeneratedCodeAttribute.cs
- InkCanvasSelection.cs
- CheckedPointers.cs
- FocusChangedEventArgs.cs
- ServiceAuthorizationManager.cs
- BitmapData.cs
- DrawingVisual.cs
- ProviderUtil.cs
- TwoPhaseCommit.cs
- GC.cs
- SecurityElement.cs
- EntityDataSourceStatementEditorForm.cs
- SelectedGridItemChangedEvent.cs
- Triplet.cs
- TextStore.cs
- EventWaitHandle.cs
- SHA512.cs
- ObjectHandle.cs
- SslStreamSecurityBindingElement.cs
- ProviderBase.cs
- SystemIcmpV6Statistics.cs
- FormatVersion.cs
- ProcessModelInfo.cs
- BuilderPropertyEntry.cs
- VirtualDirectoryMappingCollection.cs
- PersonalizationProviderHelper.cs
- ActivationServices.cs
- VirtualDirectoryMapping.cs
- ConnectionStringEditor.cs
- OperationContextScope.cs
- ManualResetEvent.cs
- QueryReaderSettings.cs
- ExpressionConverter.cs
- SetState.cs