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 / 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
- SymbolDocumentInfo.cs
- DbInsertCommandTree.cs
- WebDescriptionAttribute.cs
- WCFBuildProvider.cs
- SafeRightsManagementSessionHandle.cs
- SequentialUshortCollection.cs
- QilVisitor.cs
- DocumentPage.cs
- FtpRequestCacheValidator.cs
- AndCondition.cs
- VerificationAttribute.cs
- ResXResourceWriter.cs
- ComAwareEventInfo.cs
- HtmlLink.cs
- ArrayElementGridEntry.cs
- ArgumentsParser.cs
- DataService.cs
- ComponentDispatcherThread.cs
- XpsS0ValidatingLoader.cs
- PrinterResolution.cs
- LocalServiceSecuritySettings.cs
- TextTreeUndo.cs
- MenuAdapter.cs
- RawStylusInputReport.cs
- Domain.cs
- CodePrimitiveExpression.cs
- Interlocked.cs
- MatrixConverter.cs
- PcmConverter.cs
- ConditionValidator.cs
- ToolStripSeparator.cs
- HorizontalAlignConverter.cs
- DependencyPropertyConverter.cs
- StoreAnnotationsMap.cs
- CodeAttributeDeclarationCollection.cs
- bidPrivateBase.cs
- FontFamilyIdentifier.cs
- ObjectListTitleAttribute.cs
- EntityException.cs
- ObjectPropertyMapping.cs
- MaterialCollection.cs
- HttpCacheVary.cs
- LicenseProviderAttribute.cs
- Control.cs
- OleServicesContext.cs
- DBCSCodePageEncoding.cs
- login.cs
- BamlRecordReader.cs
- PageThemeBuildProvider.cs
- CurrentTimeZone.cs
- ToolBarPanel.cs
- GridErrorDlg.cs
- FlowLayoutPanel.cs
- FontSizeConverter.cs
- ConstraintCollection.cs
- SQLBinary.cs
- HttpGetProtocolReflector.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- SelectorAutomationPeer.cs
- GridLengthConverter.cs
- ParagraphVisual.cs
- GridViewColumnHeader.cs
- WebProxyScriptElement.cs
- GradientBrush.cs
- GreenMethods.cs
- CroppedBitmap.cs
- ImageListDesigner.cs
- DateBoldEvent.cs
- FlowDocumentPageViewerAutomationPeer.cs
- Vector3DAnimationBase.cs
- HtmlTableRow.cs
- SafeLibraryHandle.cs
- WebPartCloseVerb.cs
- DispatcherFrame.cs
- ProjectionPathSegment.cs
- SizeF.cs
- BindingFormattingDialog.cs
- TextAnchor.cs
- SizeConverter.cs
- ConfigurationSchemaErrors.cs
- CodePropertyReferenceExpression.cs
- SqlTriggerAttribute.cs
- CreateWorkflowOwnerCommand.cs
- PageContentAsyncResult.cs
- RequestTimeoutManager.cs
- WebHttpSecurityModeHelper.cs
- TypeBrowser.xaml.cs
- ToolboxBitmapAttribute.cs
- ThreadStateException.cs
- Point4DConverter.cs
- LoginUtil.cs
- SelectedDatesCollection.cs
- FixedSOMSemanticBox.cs
- ChannelRequirements.cs
- PathGeometry.cs
- BitmapMetadataEnumerator.cs
- FontWeightConverter.cs
- _NegoStream.cs
- _DigestClient.cs
- Propagator.ExtentPlaceholderCreator.cs