Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }Gets how the session is ending. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EventHandlersStore.cs
- Underline.cs
- CustomAttributeSerializer.cs
- Enum.cs
- ObjectRef.cs
- EventLogTraceListener.cs
- DataGridViewComboBoxEditingControl.cs
- SQLDateTimeStorage.cs
- MetadataArtifactLoaderResource.cs
- ExtensionCollection.cs
- TreeViewHitTestInfo.cs
- XPathChildIterator.cs
- KeyedHashAlgorithm.cs
- Rule.cs
- AnnotationAuthorChangedEventArgs.cs
- SSmlParser.cs
- IpcClientChannel.cs
- SimpleApplicationHost.cs
- DispatcherEventArgs.cs
- entityreference_tresulttype.cs
- BitmapImage.cs
- NativeMethods.cs
- Geometry3D.cs
- InfoCardListRequest.cs
- HtmlShimManager.cs
- InvalidAsynchronousStateException.cs
- oledbmetadatacollectionnames.cs
- WindowsScroll.cs
- RoutingExtensionElement.cs
- ByteStack.cs
- XmlSchemaSimpleType.cs
- Utils.cs
- EnumType.cs
- RoutedEventValueSerializer.cs
- ContractComponent.cs
- BitHelper.cs
- CodeGotoStatement.cs
- SafeRightsManagementPubHandle.cs
- SiteMapHierarchicalDataSourceView.cs
- HandleRef.cs
- securitycriticaldata.cs
- CodeFieldReferenceExpression.cs
- SmtpTransport.cs
- Visual3D.cs
- WsatServiceCertificate.cs
- Types.cs
- ListArgumentProvider.cs
- Mutex.cs
- Item.cs
- UnwrappedTypesXmlSerializerManager.cs
- StateInitializationDesigner.cs
- JobInputBins.cs
- MarshalByValueComponent.cs
- IndicCharClassifier.cs
- ListItemCollection.cs
- Clipboard.cs
- Ref.cs
- EmptyCollection.cs
- NonParentingControl.cs
- GenericRootAutomationPeer.cs
- OletxTransactionHeader.cs
- DesignerActionHeaderItem.cs
- DocumentViewerBaseAutomationPeer.cs
- ChangePasswordAutoFormat.cs
- SqlCommand.cs
- CombinedGeometry.cs
- RunWorkerCompletedEventArgs.cs
- RuntimeArgumentHandle.cs
- ObjectIDGenerator.cs
- WmlLiteralTextAdapter.cs
- Int64KeyFrameCollection.cs
- DataGridViewDesigner.cs
- XmlToDatasetMap.cs
- ProfessionalColors.cs
- ToolStripScrollButton.cs
- SqlConnectionFactory.cs
- NavigationProperty.cs
- ErrorFormatterPage.cs
- OraclePermission.cs
- UnsafeNativeMethods.cs
- EtwTrace.cs
- MetadataExporter.cs
- PathFigureCollectionConverter.cs
- AddressHeader.cs
- DecimalStorage.cs
- Encoder.cs
- FixedSOMLineRanges.cs
- MethodSignatureGenerator.cs
- SerializerWriterEventHandlers.cs
- GestureRecognitionResult.cs
- codemethodreferenceexpression.cs
- SafeBuffer.cs
- DataColumnPropertyDescriptor.cs
- ToolboxItemAttribute.cs
- GlyphsSerializer.cs
- DataGridViewButtonColumn.cs
- ClientConvert.cs
- EntityDataSourceValidationException.cs
- AuthorizationRule.cs
- EnumerableRowCollectionExtensions.cs