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
- TickBar.cs
- XmlKeywords.cs
- Choices.cs
- WebPartDisplayModeEventArgs.cs
- ToolStripSplitButton.cs
- ModifierKeysConverter.cs
- QuaternionAnimation.cs
- WCFModelStrings.Designer.cs
- TokenBasedSet.cs
- NullableBoolConverter.cs
- ObjectListTitleAttribute.cs
- Stroke2.cs
- FilteredAttributeCollection.cs
- RelationshipConstraintValidator.cs
- LinkedList.cs
- ImageSourceTypeConverter.cs
- RequestResizeEvent.cs
- SqlWebEventProvider.cs
- ApplicationSecurityInfo.cs
- ProgressiveCrcCalculatingStream.cs
- PropertyItem.cs
- TreeNodeStyle.cs
- InternalConfigConfigurationFactory.cs
- ButtonFieldBase.cs
- PathFigureCollectionConverter.cs
- ObjectQuery_EntitySqlExtensions.cs
- RenderCapability.cs
- ObjectNotFoundException.cs
- __FastResourceComparer.cs
- ContentType.cs
- RSAOAEPKeyExchangeDeformatter.cs
- SchemaType.cs
- MenuItemStyle.cs
- Command.cs
- WebServiceHost.cs
- ApplicationSettingsBase.cs
- TdsParserStateObject.cs
- HttpCachePolicyWrapper.cs
- DataRelationCollection.cs
- SiteMapHierarchicalDataSourceView.cs
- ByteAnimationBase.cs
- Pair.cs
- FeatureManager.cs
- WrapperEqualityComparer.cs
- ImageButton.cs
- DispatcherEventArgs.cs
- CodeMethodReturnStatement.cs
- XhtmlBasicObjectListAdapter.cs
- StringConverter.cs
- DataGridViewRowCancelEventArgs.cs
- objectquery_tresulttype.cs
- DeferredSelectedIndexReference.cs
- DefaultValueConverter.cs
- BufferBuilder.cs
- PlatformNotSupportedException.cs
- figurelength.cs
- ResourceWriter.cs
- EventItfInfo.cs
- CopyAttributesAction.cs
- BasicAsyncResult.cs
- CapabilitiesSection.cs
- Size.cs
- CompilerTypeWithParams.cs
- OleDbException.cs
- MDIControlStrip.cs
- XmlSchemaAttributeGroup.cs
- IUnknownConstantAttribute.cs
- ChangePassword.cs
- DomainConstraint.cs
- RegisteredScript.cs
- Scene3D.cs
- connectionpool.cs
- WebPartEditorOkVerb.cs
- XmlSchemaObjectTable.cs
- UIElement3D.cs
- BitmapPalettes.cs
- HandlerBase.cs
- ServerValidateEventArgs.cs
- ObjectKeyFrameCollection.cs
- latinshape.cs
- TextSelectionHelper.cs
- RadioButtonRenderer.cs
- AuthorizationRuleCollection.cs
- Wildcard.cs
- TreeViewHitTestInfo.cs
- SecurityPolicySection.cs
- CompositeScriptReferenceEventArgs.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- ConfigurationValue.cs
- TimeSpanValidatorAttribute.cs
- UIElementIsland.cs
- DateTimeUtil.cs
- SortedDictionary.cs
- DataBoundControl.cs
- SHA1Managed.cs
- SymbolEqualComparer.cs
- SerializationEventsCache.cs
- metadatamappinghashervisitor.cs
- TypeReference.cs
- XamlUtilities.cs