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
- SqlConnectionStringBuilder.cs
- ContentDisposition.cs
- FormClosingEvent.cs
- CompilerWrapper.cs
- Rotation3D.cs
- RouteParametersHelper.cs
- XsdDateTime.cs
- RequestUriProcessor.cs
- LocalBuilder.cs
- FunctionQuery.cs
- BaseResourcesBuildProvider.cs
- MethodBody.cs
- SchemaElement.cs
- TraceUtility.cs
- SystemFonts.cs
- TemplateInstanceAttribute.cs
- WorkflowDefinitionContext.cs
- WizardStepBase.cs
- XMLSyntaxException.cs
- AttachedPropertyBrowsableAttribute.cs
- TraceSection.cs
- HttpRuntimeSection.cs
- XmlMtomWriter.cs
- EventHandlersStore.cs
- ApplicationSecurityInfo.cs
- ContentElement.cs
- PtsCache.cs
- IChannel.cs
- SimpleApplicationHost.cs
- DataBoundLiteralControl.cs
- CopyEncoder.cs
- ExternalFile.cs
- ValueSerializer.cs
- WindowPattern.cs
- ArrayTypeMismatchException.cs
- DocumentViewerBaseAutomationPeer.cs
- XhtmlTextWriter.cs
- Msmq4SubqueuePoisonHandler.cs
- ForeignKeyConstraint.cs
- ToggleButtonAutomationPeer.cs
- ToolTipAutomationPeer.cs
- AuthenticationService.cs
- StrokeNodeOperations2.cs
- TemplatePropertyEntry.cs
- XmlCountingReader.cs
- TemplateBamlTreeBuilder.cs
- SafeCertificateContext.cs
- Conditional.cs
- OneOfConst.cs
- ConfigurationManagerInternalFactory.cs
- XmlSchemaSimpleType.cs
- TraceAsyncResult.cs
- SystemInfo.cs
- SqlMetaData.cs
- StronglyTypedResourceBuilder.cs
- ListViewInsertionMark.cs
- ConfigXmlComment.cs
- COM2PictureConverter.cs
- SQLStringStorage.cs
- BrowserDefinition.cs
- MemoryPressure.cs
- EntityDesignerBuildProvider.cs
- TransformDescriptor.cs
- COMException.cs
- PauseStoryboard.cs
- AssemblyHelper.cs
- SymmetricKey.cs
- OdbcFactory.cs
- TextDecorationCollectionConverter.cs
- XmlName.cs
- CompositeControl.cs
- EditingCommands.cs
- KerberosTicketHashIdentifierClause.cs
- QueryValue.cs
- CollectionType.cs
- Header.cs
- IDispatchConstantAttribute.cs
- SafeFindHandle.cs
- ToolStripSeparatorRenderEventArgs.cs
- WinEventQueueItem.cs
- TrackBarRenderer.cs
- XPathNavigator.cs
- Misc.cs
- AddressingProperty.cs
- TableRowCollection.cs
- ProxyDataContractResolver.cs
- LinqToSqlWrapper.cs
- NameSpaceExtractor.cs
- ToolStripArrowRenderEventArgs.cs
- TemplateEditingVerb.cs
- Renderer.cs
- ScriptingAuthenticationServiceSection.cs
- UnmanagedMarshal.cs
- CodeBlockBuilder.cs
- OdbcErrorCollection.cs
- DataGridColumn.cs
- Operand.cs
- XhtmlMobileTextWriter.cs
- DateTimeConverter.cs
- BuildProviderUtils.cs