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
- ObjectPropertyMapping.cs
- UshortList2.cs
- ScrollChrome.cs
- TextEffectResolver.cs
- QilInvokeLateBound.cs
- SourceElementsCollection.cs
- PublishLicense.cs
- Serializer.cs
- RangeValidator.cs
- MsmqIntegrationProcessProtocolHandler.cs
- FlatButtonAppearance.cs
- ObjectDataSourceDisposingEventArgs.cs
- BindingExpression.cs
- HostingEnvironmentException.cs
- CompositeActivityTypeDescriptorProvider.cs
- BinaryParser.cs
- WeakRefEnumerator.cs
- ParamArrayAttribute.cs
- SystemIcons.cs
- CodeAttributeArgument.cs
- BaseTransportHeaders.cs
- ObjectPersistData.cs
- IndexedGlyphRun.cs
- MSHTMLHost.cs
- SocketInformation.cs
- AssemblyName.cs
- MatchAttribute.cs
- QuaternionKeyFrameCollection.cs
- HttpValueCollection.cs
- RegisteredExpandoAttribute.cs
- ItemCheckEvent.cs
- _LoggingObject.cs
- EmissiveMaterial.cs
- Path.cs
- EntitySqlQueryState.cs
- CompilerScope.Storage.cs
- StickyNote.cs
- MappingException.cs
- HtmlAnchor.cs
- VideoDrawing.cs
- StylusPointPropertyInfoDefaults.cs
- RelatedCurrencyManager.cs
- XmlWriterTraceListener.cs
- TraceContextRecord.cs
- AsyncCodeActivity.cs
- CFStream.cs
- ExitEventArgs.cs
- DependencyPropertyKind.cs
- WebContentFormatHelper.cs
- BufferModeSettings.cs
- XmlParser.cs
- ConfigErrorGlyph.cs
- MetadataItem_Static.cs
- UnsafeNativeMethods.cs
- ReaderWriterLock.cs
- EnumBuilder.cs
- BitmapEffectInputData.cs
- OdbcConnectionFactory.cs
- ListSortDescriptionCollection.cs
- WebEvents.cs
- OdbcDataAdapter.cs
- MailSettingsSection.cs
- CorePropertiesFilter.cs
- _LoggingObject.cs
- WebBrowserHelper.cs
- PinProtectionHelper.cs
- SQLInt64.cs
- IntegerValidator.cs
- DesignerView.cs
- CheckBoxField.cs
- UIPermission.cs
- MetricEntry.cs
- DataServiceRequestException.cs
- DependencyPropertyKind.cs
- DeploymentExceptionMapper.cs
- MachineKeyConverter.cs
- WebControl.cs
- ToolStripStatusLabel.cs
- SQlBooleanStorage.cs
- ECDiffieHellman.cs
- XamlTypeMapper.cs
- ListControl.cs
- SQLUtility.cs
- DefaultCommandConverter.cs
- SiteMapHierarchicalDataSourceView.cs
- WindowsContainer.cs
- RootBrowserWindow.cs
- WebPartCatalogCloseVerb.cs
- MdiWindowListItemConverter.cs
- DetailsViewRow.cs
- XmlSchemaSimpleTypeRestriction.cs
- DataRowView.cs
- ApplicationBuildProvider.cs
- ObjectContextServiceProvider.cs
- CodeNamespaceImport.cs
- DesignerSelectionListAdapter.cs
- XmlTextReaderImplHelpers.cs
- ThemeableAttribute.cs
- SByte.cs
- SecurityCriticalDataForSet.cs