Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Security / FormsAuthenticationEventArgs.cs / 1305376 / 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. /// 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. /// 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
- ListDictionary.cs
- ReliableSessionElement.cs
- XmlSchemaInferenceException.cs
- GeneratedContractType.cs
- CustomError.cs
- SqlServer2KCompatibilityCheck.cs
- AuthenticationService.cs
- ColumnClickEvent.cs
- CqlBlock.cs
- MsmqNonTransactedPoisonHandler.cs
- TaskResultSetter.cs
- GridItem.cs
- SafeCoTaskMem.cs
- SolidColorBrush.cs
- ProjectionPathSegment.cs
- TextRangeSerialization.cs
- DataGridViewLinkCell.cs
- Parser.cs
- XmlChoiceIdentifierAttribute.cs
- HtmlContainerControl.cs
- DrawingState.cs
- ResourcesGenerator.cs
- SamlSerializer.cs
- MaskedTextBoxTextEditorDropDown.cs
- XmlException.cs
- StringResourceManager.cs
- SymbolPair.cs
- CacheRequest.cs
- InternalConfigSettingsFactory.cs
- ForeignKeyConstraint.cs
- HttpDebugHandler.cs
- XslTransformFileEditor.cs
- MappingMetadataHelper.cs
- MediaContextNotificationWindow.cs
- ProcessModuleDesigner.cs
- HandleScope.cs
- Predicate.cs
- AggregateNode.cs
- LayeredChannelListener.cs
- Parsers.cs
- BidirectionalDictionary.cs
- ChangeInterceptorAttribute.cs
- TeredoHelper.cs
- CommandID.cs
- SymbolResolver.cs
- CompModSwitches.cs
- CodeDelegateCreateExpression.cs
- SecureEnvironment.cs
- QueueProcessor.cs
- Int64AnimationBase.cs
- PropertyToken.cs
- WindowInteractionStateTracker.cs
- KerberosTicketHashIdentifierClause.cs
- MatrixConverter.cs
- ScriptRegistrationManager.cs
- WebServiceReceive.cs
- TcpTransportBindingElement.cs
- WeakReferenceKey.cs
- TextEffect.cs
- MenuItemBindingCollection.cs
- WebPartConnectionsDisconnectVerb.cs
- HostExecutionContextManager.cs
- DataPagerField.cs
- InkCanvasSelection.cs
- EntityContainerAssociationSetEnd.cs
- CurrentChangedEventManager.cs
- Publisher.cs
- Rect3D.cs
- IApplicationTrustManager.cs
- HeaderUtility.cs
- EdmComplexTypeAttribute.cs
- DataRowExtensions.cs
- WinInet.cs
- MatrixKeyFrameCollection.cs
- WorkflowEnvironment.cs
- HostingEnvironmentSection.cs
- ExecutorLocksHeldException.cs
- AppearanceEditorPart.cs
- DBAsyncResult.cs
- StatusBarDrawItemEvent.cs
- SamlSerializer.cs
- IsolatedStorage.cs
- PolyLineSegmentFigureLogic.cs
- xsdvalidator.cs
- HttpClientCertificate.cs
- JournalNavigationScope.cs
- XmlAttributeProperties.cs
- GatewayDefinition.cs
- HMACSHA384.cs
- PathParser.cs
- SelectionWordBreaker.cs
- UnmanagedMemoryStreamWrapper.cs
- HttpWebRequestElement.cs
- SafePEFileHandle.cs
- MultiView.cs
- RTLAwareMessageBox.cs
- DetailsViewUpdatedEventArgs.cs
- HyperLinkStyle.cs
- XmlILAnnotation.cs
- BitConverter.cs