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
- ObjectPersistData.cs
- EntityCommandDefinition.cs
- TemplateContentLoader.cs
- XPathNodeList.cs
- MachineSettingsSection.cs
- PersistenceProviderElement.cs
- GridEntry.cs
- MatchingStyle.cs
- ObjectPersistData.cs
- DataBindEngine.cs
- WebChannelFactory.cs
- EnumMemberAttribute.cs
- WebHttpEndpoint.cs
- Renderer.cs
- AudioFormatConverter.cs
- ServicePointManager.cs
- CfgParser.cs
- EndpointIdentityExtension.cs
- UnionExpr.cs
- SecurityHelper.cs
- ObjectPropertyMapping.cs
- StylusPlugInCollection.cs
- IItemContainerGenerator.cs
- FontUnit.cs
- ZoneButton.cs
- ProxyWebPartManager.cs
- SocketException.cs
- RenderOptions.cs
- LinqDataSourceContextEventArgs.cs
- versioninfo.cs
- IteratorDescriptor.cs
- cache.cs
- ViewStateException.cs
- SessionStateModule.cs
- CurrencyManager.cs
- _TimerThread.cs
- WebPartChrome.cs
- SqlDataSourceSelectingEventArgs.cs
- CheckedListBox.cs
- exports.cs
- IdnElement.cs
- BuildResult.cs
- WeakEventManager.cs
- BCryptSafeHandles.cs
- CompoundFileStorageReference.cs
- ConfigViewGenerator.cs
- HashLookup.cs
- TdsParserSessionPool.cs
- ModelServiceImpl.cs
- PieceDirectory.cs
- MeasurementDCInfo.cs
- WorkflowOperationBehavior.cs
- LocatorPartList.cs
- DesignerActionListCollection.cs
- DefaultSection.cs
- coordinatorfactory.cs
- OleDbParameterCollection.cs
- AdCreatedEventArgs.cs
- XmlSchemaElement.cs
- WaitForChangedResult.cs
- SafeMILHandle.cs
- SystemResourceKey.cs
- FormViewUpdateEventArgs.cs
- GlyphElement.cs
- RoutedCommand.cs
- BindingsSection.cs
- SmiGettersStream.cs
- ListViewPagedDataSource.cs
- NGCUIElementCollectionSerializerAsync.cs
- AttachedPropertiesService.cs
- StorageComplexPropertyMapping.cs
- AppDomain.cs
- HtmlEmptyTagControlBuilder.cs
- EntityDataSourceContainerNameConverter.cs
- DbBuffer.cs
- Vector3D.cs
- ResourcesBuildProvider.cs
- DataSourceCollectionBase.cs
- HtmlInputButton.cs
- WindowInteropHelper.cs
- Membership.cs
- StringStorage.cs
- XPathEmptyIterator.cs
- ResourcePool.cs
- SpeechDetectedEventArgs.cs
- HtmlListAdapter.cs
- Signature.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- DelegatedStream.cs
- TypeConstant.cs
- MetadataArtifactLoader.cs
- Select.cs
- ValidatingPropertiesEventArgs.cs
- MimeImporter.cs
- AttachedPropertyMethodSelector.cs
- NavigationFailedEventArgs.cs
- UserControlDocumentDesigner.cs
- ResourceType.cs
- AxisAngleRotation3D.cs
- CapabilitiesPattern.cs