Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / SessionEndingCancelEventArgs.cs / 1305600 / 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: kusumav 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. //-------------------------------------------------------------------------------------------------- // 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: kusumav 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
- DbParameterHelper.cs
- XmlDataImplementation.cs
- MenuTracker.cs
- ScopelessEnumAttribute.cs
- DataGridParentRows.cs
- InstanceDataCollection.cs
- ConfigurationProperty.cs
- CheckoutException.cs
- Console.cs
- MailSettingsSection.cs
- DoubleCollection.cs
- TagPrefixAttribute.cs
- MarkupWriter.cs
- PrimitiveXmlSerializers.cs
- SrgsText.cs
- SpStreamWrapper.cs
- DetailsViewModeEventArgs.cs
- TextContainerChangeEventArgs.cs
- HttpResponseInternalBase.cs
- SqlDataSourceDesigner.cs
- TypeConverterAttribute.cs
- EventRecordWrittenEventArgs.cs
- BulletedList.cs
- InputElement.cs
- TraceInternal.cs
- ButtonColumn.cs
- BufferModeSettings.cs
- IPCCacheManager.cs
- PolicyVersion.cs
- HttpRequest.cs
- BitmapDecoder.cs
- Accessible.cs
- SqlCommandSet.cs
- ConstructorBuilder.cs
- ToolboxDataAttribute.cs
- Shape.cs
- TraversalRequest.cs
- AccessorTable.cs
- LoginView.cs
- StringToken.cs
- CollectionConverter.cs
- BaseParser.cs
- TemplatedWizardStep.cs
- HistoryEventArgs.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- SiteMembershipCondition.cs
- SelectionPattern.cs
- LightweightEntityWrapper.cs
- EntityStoreSchemaFilterEntry.cs
- JapaneseLunisolarCalendar.cs
- ListViewDeletedEventArgs.cs
- InputEventArgs.cs
- PermissionSetTriple.cs
- ActivityDesignerResources.cs
- TabletDevice.cs
- DataGridRow.cs
- _NestedSingleAsyncResult.cs
- HtmlFormParameterWriter.cs
- HandlerMappingMemo.cs
- DataGridViewAutoSizeModeEventArgs.cs
- SwitchLevelAttribute.cs
- Transform3DCollection.cs
- WorkflowMarkupSerializationException.cs
- ExpandCollapseProviderWrapper.cs
- ThreadAttributes.cs
- XPathNodeHelper.cs
- ChoiceConverter.cs
- LineServicesCallbacks.cs
- followingsibling.cs
- InfoCardClaimCollection.cs
- Configuration.cs
- InvalidComObjectException.cs
- Thickness.cs
- ParseNumbers.cs
- DependencySource.cs
- GrammarBuilderBase.cs
- HttpRuntime.cs
- TokenizerHelper.cs
- DocumentXPathNavigator.cs
- HMACSHA256.cs
- Pair.cs
- IsolatedStoragePermission.cs
- MsmqHostedTransportManager.cs
- WindowsContainer.cs
- InputLangChangeEvent.cs
- PublishLicense.cs
- ContentOperations.cs
- Point4D.cs
- DataView.cs
- _ProxyRegBlob.cs
- SizeAnimationUsingKeyFrames.cs
- SafeMarshalContext.cs
- TemplateBindingExpression.cs
- ReceiveErrorHandling.cs
- MdiWindowListStrip.cs
- OlePropertyStructs.cs
- ManualResetEvent.cs
- WebControlsSection.cs
- Dynamic.cs
- AuthorizationSection.cs