Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / 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: 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
- DataBoundControlHelper.cs
- TypeToken.cs
- safelinkcollection.cs
- CssTextWriter.cs
- PeerPresenceInfo.cs
- DbExpressionBuilder.cs
- FigureParaClient.cs
- DataGridViewCheckBoxColumn.cs
- ListSourceHelper.cs
- Exceptions.cs
- wmiutil.cs
- HttpConfigurationSystem.cs
- StatusBarPanelClickEvent.cs
- ListViewInsertedEventArgs.cs
- XmlDataSourceView.cs
- BamlLocalizer.cs
- BackEase.cs
- WebPartCatalogAddVerb.cs
- SessionEndingEventArgs.cs
- XmlJsonReader.cs
- ViewgenGatekeeper.cs
- Imaging.cs
- ManagedCodeMarkers.cs
- AnimationClockResource.cs
- _NegoState.cs
- FastEncoder.cs
- SafeCryptHandles.cs
- FieldAccessException.cs
- ComMethodElementCollection.cs
- EmptyWorkItem.cs
- WorkflowServiceBuildProvider.cs
- FixedSOMImage.cs
- ExceptionNotification.cs
- AmbiguousMatchException.cs
- DrawingDrawingContext.cs
- IPEndPoint.cs
- OperationBehaviorAttribute.cs
- ActivityExecutorDelegateInfo.cs
- Missing.cs
- XMLSchema.cs
- TransactedBatchingBehavior.cs
- DataTableExtensions.cs
- HtmlMeta.cs
- ServerIdentity.cs
- GroupDescription.cs
- MethodBuilderInstantiation.cs
- HtmlToClrEventProxy.cs
- WebPartManagerInternals.cs
- AsyncStreamReader.cs
- TempFiles.cs
- ValueQuery.cs
- DocumentPageHost.cs
- SafeLocalMemHandle.cs
- InstanceOwner.cs
- BinaryCommonClasses.cs
- OleDbRowUpdatedEvent.cs
- RuntimeWrappedException.cs
- XmlEncodedRawTextWriter.cs
- DelegatingHeader.cs
- Activity.cs
- DataBoundControlHelper.cs
- ThicknessAnimationBase.cs
- ChtmlMobileTextWriter.cs
- DataFieldEditor.cs
- KoreanLunisolarCalendar.cs
- RuntimeEnvironment.cs
- BufferedGraphics.cs
- EmissiveMaterial.cs
- File.cs
- PlatformCulture.cs
- ContentElement.cs
- ControlPaint.cs
- ToolStripGripRenderEventArgs.cs
- StyleReferenceConverter.cs
- PolicyReader.cs
- DetailsViewPagerRow.cs
- ClientEventManager.cs
- validationstate.cs
- PropertyStore.cs
- ObjectPersistData.cs
- webclient.cs
- WindowsIdentity.cs
- HistoryEventArgs.cs
- BuildProviderAppliesToAttribute.cs
- EncoderParameters.cs
- ConnectionInterfaceCollection.cs
- Triplet.cs
- DataContractFormatAttribute.cs
- Evidence.cs
- ExpressionVisitor.cs
- XPathDescendantIterator.cs
- ReadOnlyKeyedCollection.cs
- WsdlImporter.cs
- CollectionViewGroup.cs
- ClipboardData.cs
- ContainerUtilities.cs
- BitmapCache.cs
- ListBoxItemWrapperAutomationPeer.cs
- CardSpacePolicyElement.cs
- DBDataPermission.cs