Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / CompMod / Microsoft / Win32 / SessionEndingEventArgs.cs / 1 / SessionEndingEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace Microsoft.Win32 { using System; using System.Diagnostics; using System.Security.Permissions; ////// [HostProtectionAttribute(MayLeakOnAbort = true)] [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name = "FullTrust")] [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")] public class SessionEndingEventArgs : EventArgs { private bool cancel; private readonly SessionEndReasons reason; ///Provides data for the ///event. /// public SessionEndingEventArgs(SessionEndReasons reason) { this.reason = reason; } ///Initializes a new instance of the ///class. /// public bool Cancel { get { return cancel; } set { cancel = value; } } ///Gets or sets a value indicating whether to cancel the user request to end the session. ////// public SessionEndReasons Reason { get { return reason; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Gets how the session is ending. ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace Microsoft.Win32 { using System; using System.Diagnostics; using System.Security.Permissions; ////// [HostProtectionAttribute(MayLeakOnAbort = true)] [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name = "FullTrust")] [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")] public class SessionEndingEventArgs : EventArgs { private bool cancel; private readonly SessionEndReasons reason; ///Provides data for the ///event. /// public SessionEndingEventArgs(SessionEndReasons reason) { this.reason = reason; } ///Initializes a new instance of the ///class. /// public bool Cancel { get { return cancel; } set { cancel = value; } } ///Gets or sets a value indicating whether to cancel the user request to end the session. ////// public SessionEndReasons Reason { get { return reason; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Gets how the session is ending. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HtmlValidatorAdapter.cs
- SqlBulkCopy.cs
- HTMLTagNameToTypeMapper.cs
- WindowsTokenRoleProvider.cs
- HttpProxyTransportBindingElement.cs
- QueryableDataSource.cs
- WebPartManager.cs
- PrintPreviewGraphics.cs
- SignatureHelper.cs
- BindableAttribute.cs
- GradientStop.cs
- BaseAsyncResult.cs
- ISAPIRuntime.cs
- ClientData.cs
- ColorDialog.cs
- ListCollectionView.cs
- DataObjectAttribute.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- WindowsAuthenticationModule.cs
- Literal.cs
- DataTrigger.cs
- CopyOnWriteList.cs
- TypeConverterAttribute.cs
- ProxyHwnd.cs
- _AcceptOverlappedAsyncResult.cs
- Pens.cs
- PreparingEnlistment.cs
- AppSecurityManager.cs
- RectKeyFrameCollection.cs
- GridViewItemAutomationPeer.cs
- ChannelSinkStacks.cs
- ToolStripDropDownItem.cs
- COM2ExtendedUITypeEditor.cs
- DPCustomTypeDescriptor.cs
- ACE.cs
- RubberbandSelector.cs
- XamlStream.cs
- VariableReference.cs
- TypeResolver.cs
- UrlEncodedParameterWriter.cs
- InvalidComObjectException.cs
- BreadCrumbTextConverter.cs
- MessageUtil.cs
- StringTraceRecord.cs
- DynamicDataRoute.cs
- ResourceIDHelper.cs
- SchemaTypeEmitter.cs
- ConnectionConsumerAttribute.cs
- ZipArchive.cs
- DefaultSection.cs
- Perspective.cs
- ImageKeyConverter.cs
- Item.cs
- MatrixAnimationBase.cs
- DataSourceControl.cs
- TextCollapsingProperties.cs
- Button.cs
- EnterpriseServicesHelper.cs
- RedirectionProxy.cs
- ListViewGroupConverter.cs
- WorkflowServiceBuildProvider.cs
- Validator.cs
- FileLogRecordHeader.cs
- MissingManifestResourceException.cs
- DetectEofStream.cs
- HierarchicalDataSourceControl.cs
- ParseNumbers.cs
- NavigationWindow.cs
- TileBrush.cs
- BasicCellRelation.cs
- InputBinder.cs
- BooleanToVisibilityConverter.cs
- FlowLayoutPanelDesigner.cs
- FileIOPermission.cs
- IncrementalCompileAnalyzer.cs
- BaseAsyncResult.cs
- QuaternionConverter.cs
- UndoUnit.cs
- NavigationWindowAutomationPeer.cs
- ViewManagerAttribute.cs
- Int16AnimationBase.cs
- StatusBar.cs
- PreProcessInputEventArgs.cs
- ConfigurationValidatorBase.cs
- KeyToListMap.cs
- XmlMapping.cs
- SpecialFolderEnumConverter.cs
- GlyphElement.cs
- InvalidOleVariantTypeException.cs
- FixedPageAutomationPeer.cs
- EncodingInfo.cs
- BamlLocalizer.cs
- ErrorEventArgs.cs
- CodeGotoStatement.cs
- EntityEntry.cs
- formatter.cs
- FormViewDeletedEventArgs.cs
- ResourcePool.cs
- OperationContractAttribute.cs
- MdImport.cs