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
- PasswordTextContainer.cs
- XamlSerializerUtil.cs
- SqlDelegatedTransaction.cs
- HttpListenerException.cs
- xmlglyphRunInfo.cs
- LambdaExpression.cs
- OciHandle.cs
- WindowsTab.cs
- StringOutput.cs
- RoleGroup.cs
- RelationshipNavigation.cs
- UserPreferenceChangedEventArgs.cs
- DbProviderFactoriesConfigurationHandler.cs
- RawStylusInputCustomData.cs
- PolicyDesigner.cs
- FormClosingEvent.cs
- GeometryHitTestParameters.cs
- ReflectTypeDescriptionProvider.cs
- NamespaceDecl.cs
- PersonalizablePropertyEntry.cs
- ParserExtension.cs
- UpdatePanelTrigger.cs
- DynamicResourceExtension.cs
- TemplateKeyConverter.cs
- RedBlackList.cs
- RegexRunner.cs
- UserMapPath.cs
- MaterialGroup.cs
- FileNotFoundException.cs
- ConditionBrowserDialog.cs
- EntityProviderServices.cs
- PropertyCollection.cs
- TypeSystemProvider.cs
- DrawingGroupDrawingContext.cs
- SmtpLoginAuthenticationModule.cs
- TypeCollectionDesigner.xaml.cs
- FreezableOperations.cs
- XmlSchemaSimpleTypeList.cs
- CellParagraph.cs
- UInt16.cs
- ExtensionWindowHeader.cs
- XmlEntity.cs
- _BufferOffsetSize.cs
- XmlDataProvider.cs
- WorkerRequest.cs
- SetStateEventArgs.cs
- PostBackTrigger.cs
- PageWrapper.cs
- StringValidatorAttribute.cs
- EntityClassGenerator.cs
- RouteTable.cs
- SlipBehavior.cs
- StringConcat.cs
- RepeaterItem.cs
- TreeNodeConverter.cs
- TableAdapterManagerNameHandler.cs
- ExceptionValidationRule.cs
- ModelFunction.cs
- DefaultExpressionVisitor.cs
- RequestNavigateEventArgs.cs
- UiaCoreProviderApi.cs
- MethodInfo.cs
- RMPublishingDialog.cs
- OverflowException.cs
- HTMLTagNameToTypeMapper.cs
- KeyedHashAlgorithm.cs
- ControlEvent.cs
- TextFormatterContext.cs
- InteropBitmapSource.cs
- CloseSequence.cs
- ExceptionUtil.cs
- TableCellAutomationPeer.cs
- XhtmlBasicPhoneCallAdapter.cs
- Application.cs
- DeviceContexts.cs
- OleDbMetaDataFactory.cs
- SqlConnectionPoolProviderInfo.cs
- ResetableIterator.cs
- WebEvents.cs
- DataControlPagerLinkButton.cs
- MimeBasePart.cs
- BigInt.cs
- ServiceOperationListItem.cs
- DBCommand.cs
- _NegoState.cs
- SQLRoleProvider.cs
- SafeNativeMethods.cs
- DefaultAsyncDataDispatcher.cs
- ComboBox.cs
- TableDetailsRow.cs
- MbpInfo.cs
- SmtpFailedRecipientException.cs
- PatternMatcher.cs
- AutomationElement.cs
- NumericExpr.cs
- TagPrefixCollection.cs
- DirectoryInfo.cs
- _HelperAsyncResults.cs
- NodeFunctions.cs
- Attributes.cs