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
- TypeUtil.cs
- DataConnectionHelper.cs
- MetadataException.cs
- ClientCredentialsSecurityTokenManager.cs
- XmlSerializationGeneratedCode.cs
- ClassGenerator.cs
- ConfigurationStrings.cs
- TraceLog.cs
- OrderedDictionary.cs
- RenderingEventArgs.cs
- XmlNamespaceMappingCollection.cs
- DataList.cs
- TextTreeNode.cs
- HttpHandler.cs
- ParameterSubsegment.cs
- DataTable.cs
- CreateUserWizard.cs
- TrackingParameters.cs
- DataGridViewCellStyleChangedEventArgs.cs
- FrameworkContentElement.cs
- PropertyChangedEventManager.cs
- DiscreteKeyFrames.cs
- PolicyStatement.cs
- Rect3D.cs
- ErrorWebPart.cs
- AlternateViewCollection.cs
- ExpressionConverter.cs
- CompilerResults.cs
- SystemBrushes.cs
- SecurityResources.cs
- SafeLibraryHandle.cs
- RenderContext.cs
- XsltContext.cs
- AlphaSortedEnumConverter.cs
- InfoCardUIAgent.cs
- OracleMonthSpan.cs
- PolicyException.cs
- XPathNodeIterator.cs
- HotSpot.cs
- DescendantQuery.cs
- ActivityBindForm.Designer.cs
- HttpListenerPrefixCollection.cs
- TreeNodeConverter.cs
- WindowPattern.cs
- ReceiveActivityDesigner.cs
- CompilerState.cs
- CompiledQueryCacheKey.cs
- wmiprovider.cs
- X509SecurityTokenParameters.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- TagMapInfo.cs
- BaseHashHelper.cs
- RemotingAttributes.cs
- CqlQuery.cs
- WebMethodAttribute.cs
- ConfigErrorGlyph.cs
- VBIdentifierNameEditor.cs
- DropTarget.cs
- util.cs
- DropDownButton.cs
- TypeUnloadedException.cs
- ProgressBarAutomationPeer.cs
- wmiprovider.cs
- ListDictionary.cs
- XmlSchemaIdentityConstraint.cs
- RequestQueryParser.cs
- DataContext.cs
- SmiTypedGetterSetter.cs
- Fx.cs
- WindowsFormsSectionHandler.cs
- QueryContext.cs
- DelegatingStream.cs
- DataGridViewIntLinkedList.cs
- wmiprovider.cs
- UnionQueryOperator.cs
- ImageMap.cs
- SplitterPanel.cs
- Msmq4SubqueuePoisonHandler.cs
- TimeSpanValidator.cs
- TimeSpanConverter.cs
- HtmlButton.cs
- QilReplaceVisitor.cs
- DataContractAttribute.cs
- UnsignedPublishLicense.cs
- OleDbConnectionFactory.cs
- MemberDescriptor.cs
- VariableExpressionConverter.cs
- CharacterHit.cs
- PolyQuadraticBezierSegment.cs
- OdbcConnection.cs
- Journal.cs
- VBIdentifierNameEditor.cs
- ConfigurationManagerHelperFactory.cs
- SchemaCollectionPreprocessor.cs
- RepeaterItemEventArgs.cs
- MapPathBasedVirtualPathProvider.cs
- DynamicPropertyHolder.cs
- XmlValueConverter.cs
- GPPOINTF.cs
- DynamicPropertyHolder.cs