Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / SessionEndingCancelEventArgs.cs / 1305600 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SecurityHeader.cs
- AsymmetricSignatureFormatter.cs
- SchemaImporter.cs
- MatrixAnimationBase.cs
- Transform3DGroup.cs
- SoapObjectWriter.cs
- PathData.cs
- BindingContext.cs
- SqlTriggerContext.cs
- QueryResponse.cs
- DoubleConverter.cs
- SeverityFilter.cs
- TableCellAutomationPeer.cs
- ScriptingAuthenticationServiceSection.cs
- DataServiceKeyAttribute.cs
- SecuritySessionSecurityTokenProvider.cs
- DbReferenceCollection.cs
- EventWaitHandleSecurity.cs
- DataGridViewRowsAddedEventArgs.cs
- SrgsRule.cs
- Calendar.cs
- TextContainer.cs
- SwitchElementsCollection.cs
- FontSource.cs
- PanelDesigner.cs
- UpDownEvent.cs
- validation.cs
- TableLayoutStyle.cs
- TextModifierScope.cs
- MultiPartWriter.cs
- Point3DValueSerializer.cs
- MenuItem.cs
- ControlParser.cs
- Activity.cs
- HttpCapabilitiesBase.cs
- CfgParser.cs
- PropertyKey.cs
- ThaiBuddhistCalendar.cs
- AlternateView.cs
- WindowsScroll.cs
- TcpWorkerProcess.cs
- GZipDecoder.cs
- QuaternionKeyFrameCollection.cs
- ZipIOLocalFileDataDescriptor.cs
- SystemIPv4InterfaceProperties.cs
- EasingFunctionBase.cs
- RegexWorker.cs
- StyleTypedPropertyAttribute.cs
- _NetworkingPerfCounters.cs
- ObjRef.cs
- BaseParser.cs
- AdornedElementPlaceholder.cs
- Suspend.cs
- XComponentModel.cs
- AssemblyContextControlItem.cs
- PageStatePersister.cs
- CultureTableRecord.cs
- RoleManagerModule.cs
- CannotUnloadAppDomainException.cs
- WorkflowServiceAttributes.cs
- CompensationParticipant.cs
- ButtonRenderer.cs
- IndicFontClient.cs
- XmlCDATASection.cs
- ChildDocumentBlock.cs
- BehaviorEditorPart.cs
- ArithmeticException.cs
- MetaModel.cs
- ResourceIDHelper.cs
- XmlSchemaImport.cs
- AsymmetricKeyExchangeFormatter.cs
- COM2ColorConverter.cs
- HttpPostedFileBase.cs
- InstanceStoreQueryResult.cs
- RawMouseInputReport.cs
- SerializationObjectManager.cs
- COM2IDispatchConverter.cs
- namescope.cs
- XmlComplianceUtil.cs
- DBCSCodePageEncoding.cs
- _RegBlobWebProxyDataBuilder.cs
- ConfigurationStrings.cs
- XmlDataDocument.cs
- Soap11ServerProtocol.cs
- LifetimeServices.cs
- Vector3DKeyFrameCollection.cs
- SafeRightsManagementSessionHandle.cs
- DataServicePagingProviderWrapper.cs
- DetailsViewPagerRow.cs
- DetailsViewPageEventArgs.cs
- FormViewUpdatedEventArgs.cs
- TreeViewHitTestInfo.cs
- LocalFileSettingsProvider.cs
- NamespaceDisplay.xaml.cs
- FileDialogCustomPlace.cs
- SafeMILHandle.cs
- PropertyMetadata.cs
- Polygon.cs
- ProfessionalColorTable.cs
- DataGridDefaultColumnWidthTypeConverter.cs