Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- Exceptions.cs
- ValidationSettings.cs
- DBAsyncResult.cs
- HtmlControlDesigner.cs
- TextLineBreak.cs
- ZipIOExtraFieldZip64Element.cs
- PropertyManager.cs
- CalculatedColumn.cs
- RC2.cs
- EnumConverter.cs
- LongAverageAggregationOperator.cs
- StringHandle.cs
- TextParagraphView.cs
- EdmToObjectNamespaceMap.cs
- DbDataReader.cs
- StreamWriter.cs
- SqlDataSourceStatusEventArgs.cs
- SystemNetHelpers.cs
- CompiledRegexRunnerFactory.cs
- DataViewManagerListItemTypeDescriptor.cs
- ConnectionManagementSection.cs
- OutputScopeManager.cs
- Rect3DValueSerializer.cs
- Emitter.cs
- SafeRightsManagementSessionHandle.cs
- KeyboardEventArgs.cs
- WindowsTitleBar.cs
- FixedSOMPageConstructor.cs
- XPathPatternBuilder.cs
- SoapReflector.cs
- ExecutedRoutedEventArgs.cs
- NumberAction.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- PerformanceCounterManager.cs
- CustomWebEventKey.cs
- PhysicalAddress.cs
- XmlSerializableWriter.cs
- TextAnchor.cs
- datacache.cs
- _OverlappedAsyncResult.cs
- MainMenu.cs
- SystemIPAddressInformation.cs
- WriteTimeStream.cs
- GCHandleCookieTable.cs
- CounterNameConverter.cs
- Model3D.cs
- FixedTextPointer.cs
- PrivilegeNotHeldException.cs
- RuntimeHelpers.cs
- VectorCollection.cs
- DataServiceException.cs
- FormattedTextSymbols.cs
- ALinqExpressionVisitor.cs
- XmlSchemaComplexType.cs
- ServiceModelTimeSpanValidator.cs
- TextSpan.cs
- DESCryptoServiceProvider.cs
- CurrentChangedEventManager.cs
- ApplicationServicesHostFactory.cs
- RuntimeHandles.cs
- CompensableActivity.cs
- SmtpReplyReaderFactory.cs
- File.cs
- NativeObjectSecurity.cs
- LineGeometry.cs
- TextFormatterImp.cs
- ResourceAssociationSetEnd.cs
- PolicyStatement.cs
- MetricEntry.cs
- HtmlInputSubmit.cs
- CorrelationTokenInvalidatedHandler.cs
- WindowsEditBox.cs
- KoreanCalendar.cs
- DiffuseMaterial.cs
- WebPartManagerInternals.cs
- AndCondition.cs
- RtfControls.cs
- EventLogPermissionEntry.cs
- DataRowView.cs
- DeviceContexts.cs
- TreeIterator.cs
- PersonalizationProvider.cs
- DesignerAttribute.cs
- AmbientValueAttribute.cs
- AlignmentXValidation.cs
- TreeSet.cs
- Dump.cs
- ScriptReference.cs
- LazyLoadBehavior.cs
- DefaultSection.cs
- DefaultHttpHandler.cs
- MessagingDescriptionAttribute.cs
- BitmapEffectOutputConnector.cs
- ScriptIgnoreAttribute.cs
- ArcSegment.cs
- DesignerSerializerAttribute.cs
- BoundPropertyEntry.cs
- ClientConvert.cs
- DictionaryTraceRecord.cs
- SByteStorage.cs