Code:
/ 4.0 / 4.0 / 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. //-------------------------------------------------------------------------------------------------- // 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
- SkewTransform.cs
- ByteAnimationBase.cs
- SoapIgnoreAttribute.cs
- WizardForm.cs
- RtType.cs
- SID.cs
- ButtonChrome.cs
- _NetworkingPerfCounters.cs
- SQLInt64.cs
- EventArgs.cs
- httpserverutility.cs
- MailDefinition.cs
- InputMethodStateChangeEventArgs.cs
- CapabilitiesAssignment.cs
- ThicknessAnimationUsingKeyFrames.cs
- ClientFormsAuthenticationCredentials.cs
- PropertyChangeTracker.cs
- GridViewUpdatedEventArgs.cs
- SelectionWordBreaker.cs
- SafeRightsManagementSessionHandle.cs
- PropertyItem.cs
- DetailsViewUpdatedEventArgs.cs
- TextBox.cs
- FormsAuthentication.cs
- COM2PropertyDescriptor.cs
- ListBoxItemAutomationPeer.cs
- _Connection.cs
- KoreanCalendar.cs
- MemoryRecordBuffer.cs
- EventMappingSettings.cs
- SmiContext.cs
- WhileDesigner.cs
- ProbeMatches11.cs
- DataServiceProcessingPipelineEventArgs.cs
- WebInvokeAttribute.cs
- SID.cs
- Crc32Helper.cs
- SupportingTokenChannel.cs
- Partitioner.cs
- UntypedNullExpression.cs
- RefExpr.cs
- X509CertificateValidationMode.cs
- FixedSOMFixedBlock.cs
- ValueUnavailableException.cs
- DrawingBrush.cs
- Parameter.cs
- StorageBasedPackageProperties.cs
- PlainXmlWriter.cs
- SelectionPattern.cs
- WMICapabilities.cs
- _Semaphore.cs
- QilValidationVisitor.cs
- GlyphCache.cs
- CapabilitiesAssignment.cs
- SessionMode.cs
- QilGenerator.cs
- PageFunction.cs
- ElementAction.cs
- HyperLinkStyle.cs
- DataSvcMapFileSerializer.cs
- CodeLinePragma.cs
- PostBackOptions.cs
- Perspective.cs
- Button.cs
- ScriptingProfileServiceSection.cs
- CodeAttributeArgumentCollection.cs
- AnimationException.cs
- DataGridViewSortCompareEventArgs.cs
- ObjectKeyFrameCollection.cs
- GlobalizationSection.cs
- CustomCategoryAttribute.cs
- ExpressionBuilder.cs
- cryptoapiTransform.cs
- IOThreadScheduler.cs
- CommonBehaviorsSection.cs
- ContainerActivationHelper.cs
- TextEditorCharacters.cs
- SoapExtensionStream.cs
- ToolStripSeparatorRenderEventArgs.cs
- PerformanceCounterPermissionEntryCollection.cs
- WaitHandle.cs
- NCryptNative.cs
- ProcessExitedException.cs
- KeyValueInternalCollection.cs
- DBAsyncResult.cs
- ExpressionBinding.cs
- EntityTemplateFactory.cs
- Listen.cs
- ObservableCollection.cs
- BindingMAnagerBase.cs
- InputLanguageEventArgs.cs
- AdornerLayer.cs
- CryptographicAttribute.cs
- XmlReflectionImporter.cs
- PeoplePickerWrapper.cs
- UniqueIdentifierService.cs
- TripleDES.cs
- VersionedStreamOwner.cs
- ObjectDataSourceChooseTypePanel.cs
- Constraint.cs