Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- StreamReader.cs
- StrongNameIdentityPermission.cs
- BridgeDataReader.cs
- MsmqIntegrationProcessProtocolHandler.cs
- CqlBlock.cs
- FunctionImportMapping.cs
- OperatingSystemVersionCheck.cs
- DaylightTime.cs
- Perspective.cs
- MdImport.cs
- KeyEvent.cs
- ConfigXmlDocument.cs
- SchemaSetCompiler.cs
- XXXOnTypeBuilderInstantiation.cs
- BufferedStream.cs
- ToolStripSplitButton.cs
- COSERVERINFO.cs
- ComContractElement.cs
- GPPOINTF.cs
- ProgressChangedEventArgs.cs
- TextModifier.cs
- ParameterBuilder.cs
- StretchValidation.cs
- MachineKeyConverter.cs
- RequestQueue.cs
- BasePropertyDescriptor.cs
- ServerTooBusyException.cs
- FormViewModeEventArgs.cs
- FixedElement.cs
- FullTextState.cs
- SqlAliaser.cs
- Point3DConverter.cs
- FormatSelectingMessageInspector.cs
- PageRanges.cs
- ActivityIdHeader.cs
- TextHidden.cs
- DetailsViewRowCollection.cs
- NameSpaceEvent.cs
- ColorTypeConverter.cs
- ItemAutomationPeer.cs
- GPRECTF.cs
- Message.cs
- CompiledQuery.cs
- StrokeCollectionConverter.cs
- CompletionProxy.cs
- HiddenField.cs
- ToolBar.cs
- XPathNavigatorKeyComparer.cs
- WebEncodingValidator.cs
- SimpleMailWebEventProvider.cs
- StorageModelBuildProvider.cs
- SoapEnvelopeProcessingElement.cs
- SymmetricAlgorithm.cs
- Menu.cs
- WebPartMinimizeVerb.cs
- AtomEntry.cs
- IdlingCommunicationPool.cs
- CustomCredentialPolicy.cs
- Journaling.cs
- BaseTemplateCodeDomTreeGenerator.cs
- DecoderReplacementFallback.cs
- MouseGesture.cs
- EntityDataSourceMemberPath.cs
- HttpWebRequestElement.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- Convert.cs
- Rule.cs
- AbandonedMutexException.cs
- ToolboxCategoryItems.cs
- AsyncCompletedEventArgs.cs
- WorkingDirectoryEditor.cs
- MetadataPropertyvalue.cs
- CustomSignedXml.cs
- UInt64.cs
- initElementDictionary.cs
- PeerNameResolver.cs
- WindowsGrip.cs
- InstrumentationTracker.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- GenericParameterDataContract.cs
- Tuple.cs
- Ipv6Element.cs
- SimpleWebHandlerParser.cs
- AdapterDictionary.cs
- WizardPanel.cs
- UrlMappingsSection.cs
- SQLBinary.cs
- DbConnectionStringCommon.cs
- AccessorTable.cs
- IPipelineRuntime.cs
- Bezier.cs
- HwndMouseInputProvider.cs
- Action.cs
- GridViewAutomationPeer.cs
- OpenFileDialog.cs
- MultiViewDesigner.cs
- IntSecurity.cs
- CreateUserWizardStep.cs
- IdentityReference.cs
- TypedTableBaseExtensions.cs