Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / Security / FormsAuthenticationEventArgs.cs / 1 / FormsAuthenticationEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * FormsAuthenticationEventArgs class * * Copyright (c) 1999 Microsoft Corporation */ namespace System.Web.Security { using System.Security.Principal; using System.Security.Permissions; ////// The /// event argument passed to the FormsAuthentication_OnAuthenticate event. Contains a FormsIdentity object and the /// IPrincipal object used for the context. /// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class FormsAuthenticationEventArgs : EventArgs { private IPrincipal _User; private HttpContext _Context; ////// public IPrincipal User { get { return _User;} [SecurityPermission(SecurityAction.Demand, ControlPrincipal=true)] set { _User = value; } } ///The /// IPrincipal object to be associated with the request. /// ////// This is the HttpContext intrinsic - most /// notably provides access to Request, Response, and User objects. /// public HttpContext Context { get { return _Context;}} ////// Constructor /// public FormsAuthenticationEventArgs(HttpContext context) { _Context = context; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * FormsAuthenticationEventArgs class * * Copyright (c) 1999 Microsoft Corporation */ namespace System.Web.Security { using System.Security.Principal; using System.Security.Permissions; ////// The /// event argument passed to the FormsAuthentication_OnAuthenticate event. Contains a FormsIdentity object and the /// IPrincipal object used for the context. /// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class FormsAuthenticationEventArgs : EventArgs { private IPrincipal _User; private HttpContext _Context; ////// public IPrincipal User { get { return _User;} [SecurityPermission(SecurityAction.Demand, ControlPrincipal=true)] set { _User = value; } } ///The /// IPrincipal object to be associated with the request. /// ////// This is the HttpContext intrinsic - most /// notably provides access to Request, Response, and User objects. /// public HttpContext Context { get { return _Context;}} ////// Constructor /// public FormsAuthenticationEventArgs(HttpContext context) { _Context = context; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DuplicateWaitObjectException.cs
- Size.cs
- DoubleAnimationClockResource.cs
- ContainerVisual.cs
- StringAnimationUsingKeyFrames.cs
- compensatingcollection.cs
- EncoderFallback.cs
- ColumnMapTranslator.cs
- GeometryModel3D.cs
- SponsorHelper.cs
- FilterException.cs
- Types.cs
- xml.cs
- RawStylusInputCustomData.cs
- ResourceExpressionEditor.cs
- DataGridViewHitTestInfo.cs
- Clipboard.cs
- XNodeValidator.cs
- SafeNativeMethodsOther.cs
- CodeCatchClauseCollection.cs
- Utils.cs
- DateTimeFormatInfo.cs
- ZeroOpNode.cs
- SystemColors.cs
- ScriptResourceInfo.cs
- AuthenticationSection.cs
- ChangeTracker.cs
- CheckBoxFlatAdapter.cs
- XmlEntity.cs
- Dump.cs
- ScrollableControl.cs
- GridViewColumnHeader.cs
- TypeConstant.cs
- TransactionFlowAttribute.cs
- DesignerProperties.cs
- ResourceProviderFactory.cs
- PropertyOverridesTypeEditor.cs
- XmlIlGenerator.cs
- SystemResourceHost.cs
- StringArrayConverter.cs
- SiteMapHierarchicalDataSourceView.cs
- FontStyle.cs
- TypeAccessException.cs
- XmlSecureResolver.cs
- ZipIOExtraFieldPaddingElement.cs
- HandlerBase.cs
- MsmqIntegrationOutputChannel.cs
- SymbolPair.cs
- DataTableMapping.cs
- ImportOptions.cs
- ActivityCodeDomReferenceService.cs
- propertyentry.cs
- ObjectHandle.cs
- lengthconverter.cs
- XPathSelectionIterator.cs
- CompilationLock.cs
- MemberListBinding.cs
- TablePattern.cs
- SqlIdentifier.cs
- HandlerBase.cs
- Byte.cs
- AttributeCollection.cs
- PerformanceCounterPermissionAttribute.cs
- XmlComplianceUtil.cs
- TypeLoadException.cs
- GeneralTransform3D.cs
- MimeMapping.cs
- ScrollBarRenderer.cs
- ExpressionPrefixAttribute.cs
- XmlNodeList.cs
- WebServiceParameterData.cs
- MetaChildrenColumn.cs
- DynamicUpdateCommand.cs
- DrawingImage.cs
- DelimitedListTraceListener.cs
- ProxySimple.cs
- DateTimeSerializationSection.cs
- GradientStop.cs
- TextElementCollection.cs
- PageAsyncTask.cs
- OutputWindow.cs
- PerspectiveCamera.cs
- DataGridParentRows.cs
- COM2ExtendedTypeConverter.cs
- DataSourceControlBuilder.cs
- Directory.cs
- CodeDOMUtility.cs
- CanExecuteRoutedEventArgs.cs
- IODescriptionAttribute.cs
- UriParserTemplates.cs
- precedingquery.cs
- MarkupCompilePass1.cs
- ResourcePool.cs
- KeyFrames.cs
- InstanceHandle.cs
- WindowsUpDown.cs
- WindowsListViewItemCheckBox.cs
- XmlEntity.cs
- ToolboxCategoryItems.cs
- XmlSerializationWriter.cs