Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / SessionEndingCancelEventArgs.cs / 1 / SessionEndingCancelEventArgs.cs
//-------------------------------------------------------------------------------------------------- // File: SessionEndingCancelEventArgs.cs // // Copyright (C) 2004 by Microsoft Corporation. All rights reserved. // // Description: // OnSessionEnding is called to raise the SessionEnding event. The developer will // typically override this method if they want to take action when the OS is ending // a session ( or they may choose to attach an event). // // This method will be called when the user has chosen to either logoff or shutdown. // These events are equivalent to receiving a WM_QUERYSESSION window event. // Windows will send it when user is logging out/shutting down. // ( See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/wm_queryendsession.asp ). // // By default if this event is not cancelled � Avalon will then call Application.Shutdown. // // History: // 08/10/04: [....] Moved out of Application.cs to its own separate file. // //------------------------------------------------------------------------------------------------- using System.ComponentModel; namespace System.Windows { ////// Event args for StartingUp event /// public class SessionEndingCancelEventArgs : CancelEventArgs { ////// constructor /// internal SessionEndingCancelEventArgs(ReasonSessionEnding reasonSessionEnding) { _reasonSessionEnding = reasonSessionEnding; } ////// The ReasonSessionEnding enum on the SessionEndingEventArgs indicates whether /// the session is ending in response to a shutdown of the OS, or if the user /// is logging off /// public ReasonSessionEnding ReasonSessionEnding { get { return _reasonSessionEnding; } } private ReasonSessionEnding _reasonSessionEnding; } } // 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
- VisualBrush.cs
- ObjectConverter.cs
- ContentTypeSettingDispatchMessageFormatter.cs
- GridEntry.cs
- SystemIPInterfaceStatistics.cs
- NetworkStream.cs
- TiffBitmapEncoder.cs
- EncryptionUtility.cs
- HtmlInputFile.cs
- EntityProxyTypeInfo.cs
- FastPropertyAccessor.cs
- SQLGuidStorage.cs
- XmlElementList.cs
- MutexSecurity.cs
- TablePatternIdentifiers.cs
- WindowsListViewGroupHelper.cs
- FactoryId.cs
- DesignerSerializerAttribute.cs
- ListSortDescription.cs
- NamedServiceModelExtensionCollectionElement.cs
- Int16Converter.cs
- WindowsRegion.cs
- mactripleDES.cs
- XmlUtf8RawTextWriter.cs
- StateItem.cs
- StringAnimationBase.cs
- ChangesetResponse.cs
- InvalidCastException.cs
- TextElementCollectionHelper.cs
- DataRowView.cs
- SafePointer.cs
- Form.cs
- TypeDescriptor.cs
- Point3DCollectionConverter.cs
- SignerInfo.cs
- NavigateUrlConverter.cs
- JapaneseCalendar.cs
- ObjectRef.cs
- PauseStoryboard.cs
- Sentence.cs
- EventHandlers.cs
- DependencyPropertyConverter.cs
- WebPartCancelEventArgs.cs
- Facet.cs
- ObjectQueryExecutionPlan.cs
- ConfigurationSectionCollection.cs
- SqlDependencyListener.cs
- DiffuseMaterial.cs
- FormsAuthenticationTicket.cs
- WindowsListViewGroupHelper.cs
- ImageListStreamer.cs
- RIPEMD160Managed.cs
- _WebProxyDataBuilder.cs
- URI.cs
- ProfileGroupSettings.cs
- HMACSHA384.cs
- DivideByZeroException.cs
- ProtocolsConfigurationHandler.cs
- FileClassifier.cs
- FlowDocumentPage.cs
- ConnectionStringsExpressionBuilder.cs
- IChannel.cs
- WebReferencesBuildProvider.cs
- PersistenceTypeAttribute.cs
- FontUnitConverter.cs
- XPathNodeIterator.cs
- UniqueID.cs
- Int64Storage.cs
- IdentityHolder.cs
- SkinBuilder.cs
- TemplateBindingExpressionConverter.cs
- PriorityQueue.cs
- DrawListViewColumnHeaderEventArgs.cs
- OleDbMetaDataFactory.cs
- LinkArea.cs
- MemberRelationshipService.cs
- ParsedAttributeCollection.cs
- ConnectionsZoneAutoFormat.cs
- ActivityBuilderHelper.cs
- CodeBinaryOperatorExpression.cs
- OracleRowUpdatingEventArgs.cs
- WebPartManager.cs
- ApplicationSecurityManager.cs
- EdmScalarPropertyAttribute.cs
- AppSettingsExpressionEditor.cs
- PropertyRecord.cs
- CopyCodeAction.cs
- AffineTransform3D.cs
- OdbcReferenceCollection.cs
- wgx_exports.cs
- StylusButtonEventArgs.cs
- Stylesheet.cs
- WebRequestModuleElement.cs
- QilCloneVisitor.cs
- Transform.cs
- DrawingGroup.cs
- HttpCacheParams.cs
- Brush.cs
- Attributes.cs
- RawStylusInput.cs