Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // //----------------------------------------------------------------------------- /* * 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FrameworkTextComposition.cs
- ExtendedProperty.cs
- CallTemplateAction.cs
- Setter.cs
- Thumb.cs
- DataRowView.cs
- PlatformCulture.cs
- RemotingServices.cs
- HtmlTableRow.cs
- HttpConfigurationContext.cs
- HttpErrorTraceRecord.cs
- Context.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- CustomAttributeFormatException.cs
- OdbcPermission.cs
- InternalUserCancelledException.cs
- DeviceContexts.cs
- PeerTransportBindingElement.cs
- Soap11ServerProtocol.cs
- DateTimeFormatInfo.cs
- AtlasWeb.Designer.cs
- SocketException.cs
- AddingNewEventArgs.cs
- Hashtable.cs
- DialogResultConverter.cs
- BaseValidatorDesigner.cs
- RequiredAttributeAttribute.cs
- URLString.cs
- DelayLoadType.cs
- DynamicEndpoint.cs
- ListItem.cs
- Misc.cs
- Identity.cs
- SafeThemeHandle.cs
- XamlPointCollectionSerializer.cs
- MethodBuilderInstantiation.cs
- SqlGenericUtil.cs
- DeclaredTypeValidator.cs
- GeneralTransform3DGroup.cs
- DesignTable.cs
- Expressions.cs
- IItemContainerGenerator.cs
- AsyncContentLoadedEventArgs.cs
- UrlAuthFailureHandler.cs
- ThreadAbortException.cs
- XmlSchemaCompilationSettings.cs
- SendMailErrorEventArgs.cs
- CTreeGenerator.cs
- SendSecurityHeaderElement.cs
- CacheOutputQuery.cs
- ComponentRenameEvent.cs
- CodeDomLoader.cs
- GridViewCancelEditEventArgs.cs
- LoadedOrUnloadedOperation.cs
- WsdlHelpGeneratorElement.cs
- LinearKeyFrames.cs
- SafeNativeMethods.cs
- XmlException.cs
- AnnotationComponentManager.cs
- UnsafeNativeMethodsCLR.cs
- HttpResponseBase.cs
- OpCopier.cs
- ExpressionConverter.cs
- CultureInfoConverter.cs
- DynamicValidatorEventArgs.cs
- MenuItemBinding.cs
- ProfileParameter.cs
- BaseCodeDomTreeGenerator.cs
- ConfigurationStrings.cs
- HttpListenerContext.cs
- InputScopeManager.cs
- DbSourceCommand.cs
- BaseDataList.cs
- RegisteredDisposeScript.cs
- UnlockCardRequest.cs
- PagesSection.cs
- KeyBinding.cs
- DetailsViewDeletedEventArgs.cs
- FormsAuthenticationConfiguration.cs
- RuntimeHelpers.cs
- XmlSchemaInferenceException.cs
- UIElement3D.cs
- WebAdminConfigurationHelper.cs
- DynamicDocumentPaginator.cs
- AuthenticodeSignatureInformation.cs
- ResourcePool.cs
- ValidationRuleCollection.cs
- _ContextAwareResult.cs
- Int64KeyFrameCollection.cs
- PageThemeParser.cs
- X509Chain.cs
- Calendar.cs
- VersionedStreamOwner.cs
- XmlSchemaExporter.cs
- WebPartConnectionsDisconnectVerb.cs
- CompositeFontInfo.cs
- CompositeCollectionView.cs
- XmlDocumentType.cs
- LambdaCompiler.Generated.cs
- BindingMemberInfo.cs