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
- HashUtility.cs
- ComPersistableTypeElementCollection.cs
- shaperfactoryquerycachekey.cs
- ElementHostPropertyMap.cs
- SymmetricSecurityProtocol.cs
- ServiceNameElementCollection.cs
- RegexRunner.cs
- MD5.cs
- DataGridViewTopLeftHeaderCell.cs
- Lease.cs
- MarshalByValueComponent.cs
- MaskDesignerDialog.cs
- CodeExpressionStatement.cs
- UIPermission.cs
- DateTimeStorage.cs
- SqlTypesSchemaImporter.cs
- StandardCommands.cs
- XmlAnyElementAttribute.cs
- VScrollBar.cs
- PerfCounters.cs
- Vector.cs
- Image.cs
- MetadataFile.cs
- BuildProvider.cs
- PathTooLongException.cs
- CompilationRelaxations.cs
- BatchStream.cs
- DataBindingExpressionBuilder.cs
- StickyNoteAnnotations.cs
- DebugView.cs
- IndexedDataBuffer.cs
- JoinGraph.cs
- DecimalStorage.cs
- ConfigurationSectionCollection.cs
- DCSafeHandle.cs
- CommandEventArgs.cs
- ReferenceEqualityComparer.cs
- TrustSection.cs
- QilStrConcatenator.cs
- FragmentQueryProcessor.cs
- DependencyProperty.cs
- _LoggingObject.cs
- FontDialog.cs
- Container.cs
- ColumnMapVisitor.cs
- PersonalizationProvider.cs
- BamlTreeUpdater.cs
- ComponentRenameEvent.cs
- LightweightCodeGenerator.cs
- FieldReference.cs
- XmlReflectionImporter.cs
- RelationshipConverter.cs
- SelectorAutomationPeer.cs
- ExpressionVisitor.cs
- PermissionListSet.cs
- RemotingConfigParser.cs
- AudioException.cs
- Rfc4050KeyFormatter.cs
- TextBox.cs
- SqlBuffer.cs
- XmlEncodedRawTextWriter.cs
- DataKeyArray.cs
- WorkflowServiceBehavior.cs
- VersionPair.cs
- IEnumerable.cs
- EncryptedData.cs
- FormViewRow.cs
- RequiredFieldValidator.cs
- SystemDiagnosticsSection.cs
- GB18030Encoding.cs
- WhitespaceRule.cs
- Barrier.cs
- CodePageUtils.cs
- NamespaceDisplayAutomationPeer.cs
- BamlResourceDeserializer.cs
- SpeechSeg.cs
- CapabilitiesState.cs
- PermissionToken.cs
- ForwardPositionQuery.cs
- Debug.cs
- EndOfStreamException.cs
- Compilation.cs
- UnmanagedBitmapWrapper.cs
- SubMenuStyle.cs
- RegexInterpreter.cs
- _SafeNetHandles.cs
- RouteValueDictionary.cs
- SendMailErrorEventArgs.cs
- EpmHelper.cs
- WebPartZoneBase.cs
- DataGridColumnHeaderAutomationPeer.cs
- Journal.cs
- DataBinding.cs
- WebRequestModuleElement.cs
- FixedSOMPageConstructor.cs
- TypeElement.cs
- KeyValuePairs.cs
- DataSetUtil.cs
- FormatVersion.cs
- AdapterDictionary.cs