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
- AnnouncementClient.cs
- AnchoredBlock.cs
- EntityObject.cs
- FreezableOperations.cs
- PropertyManager.cs
- WebPartVerbCollection.cs
- FolderNameEditor.cs
- SymbolType.cs
- RowType.cs
- KeyInterop.cs
- TextEvent.cs
- DoubleUtil.cs
- EntityDataSourceStatementEditorForm.cs
- StylusButton.cs
- RegexCapture.cs
- WizardStepBase.cs
- Column.cs
- ClientSettingsSection.cs
- Label.cs
- DictionarySectionHandler.cs
- MetadataPropertyAttribute.cs
- ColorAnimationUsingKeyFrames.cs
- GroupBoxRenderer.cs
- XmlChildNodes.cs
- ShutDownListener.cs
- MenuItemStyle.cs
- DbMetaDataColumnNames.cs
- DllHostedComPlusServiceHost.cs
- DocumentReferenceCollection.cs
- ProcessMonitor.cs
- OletxTransactionFormatter.cs
- RemotingAttributes.cs
- SafeNativeMethods.cs
- COM2PropertyDescriptor.cs
- DataGridBoolColumn.cs
- Int16AnimationBase.cs
- InvalidOleVariantTypeException.cs
- SqlHelper.cs
- WebPartCollection.cs
- ToolStripScrollButton.cs
- SizeIndependentAnimationStorage.cs
- ClientSettingsSection.cs
- ToolStripGrip.cs
- Slider.cs
- xamlnodes.cs
- ReflectionTypeLoadException.cs
- DBDataPermissionAttribute.cs
- XXXInfos.cs
- Matrix.cs
- StrokeNode.cs
- DesignSurfaceServiceContainer.cs
- FindCriteriaCD1.cs
- SqlServices.cs
- XmlComment.cs
- SQLDecimalStorage.cs
- ManagedWndProcTracker.cs
- TextBoxView.cs
- CapacityStreamGeometryContext.cs
- ConstraintEnumerator.cs
- MutexSecurity.cs
- WindowsScrollBar.cs
- EditorAttribute.cs
- InputMethod.cs
- XDRSchema.cs
- SoapElementAttribute.cs
- SelectorItemAutomationPeer.cs
- SafeHandles.cs
- FontDriver.cs
- RectangleHotSpot.cs
- RadioButtonRenderer.cs
- MetadataCache.cs
- MsmqInputSessionChannel.cs
- CommandLibraryHelper.cs
- CompositeControlDesigner.cs
- TabOrder.cs
- TerminatorSinks.cs
- PriorityQueue.cs
- EventLogEntryCollection.cs
- SmtpDigestAuthenticationModule.cs
- documentsequencetextcontainer.cs
- JoinSymbol.cs
- DispatcherObject.cs
- OletxCommittableTransaction.cs
- StoreAnnotationsMap.cs
- ServiceHttpModule.cs
- ProfileModule.cs
- TextEditorTables.cs
- ProcessingInstructionAction.cs
- Msmq.cs
- TypefaceMetricsCache.cs
- Brush.cs
- EntityStoreSchemaGenerator.cs
- XPathExpr.cs
- filewebresponse.cs
- JsonWriterDelegator.cs
- CodeVariableDeclarationStatement.cs
- SqlRecordBuffer.cs
- ConfigurationSection.cs
- UntypedNullExpression.cs
- RelationshipWrapper.cs