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
- FormViewDeletedEventArgs.cs
- RecommendedAsConfigurableAttribute.cs
- EventItfInfo.cs
- DynamicPropertyReader.cs
- XPathAncestorQuery.cs
- ResourceExpressionBuilder.cs
- PlaceHolder.cs
- TextRangeEditLists.cs
- ConnectionString.cs
- StoreItemCollection.Loader.cs
- DecimalKeyFrameCollection.cs
- TextSearch.cs
- ExtractedStateEntry.cs
- RegistryPermission.cs
- PreProcessor.cs
- Compensate.cs
- ProcessThreadDesigner.cs
- QuaternionKeyFrameCollection.cs
- SqlConnectionString.cs
- EllipseGeometry.cs
- IdentifierService.cs
- AlignmentXValidation.cs
- BoundPropertyEntry.cs
- Error.cs
- Panel.cs
- UriTemplateCompoundPathSegment.cs
- DataGridViewAccessibleObject.cs
- TabPage.cs
- IssuedTokensHeader.cs
- __ConsoleStream.cs
- TransactedReceiveScope.cs
- SelectionItemPattern.cs
- ElementHost.cs
- CalculatedColumn.cs
- MouseEvent.cs
- TaskDesigner.cs
- BufferAllocator.cs
- ItemsPresenter.cs
- FieldToken.cs
- RegexRunnerFactory.cs
- ToolstripProfessionalRenderer.cs
- SecurityAccessDeniedException.cs
- TableSectionStyle.cs
- DataKeyCollection.cs
- ToolStripItemBehavior.cs
- ReadOnlyPropertyMetadata.cs
- FrameworkReadOnlyPropertyMetadata.cs
- ServiceDesigner.cs
- DoubleStorage.cs
- EncoderReplacementFallback.cs
- DropDownList.cs
- FileDialog_Vista.cs
- BitArray.cs
- XmlSchemaComplexType.cs
- XmlTextReaderImplHelpers.cs
- BaseAsyncResult.cs
- ActivityScheduledQuery.cs
- ExpandCollapsePattern.cs
- ConnectionStringsSection.cs
- SchemaImporter.cs
- ListViewAutomationPeer.cs
- StrictModeSecurityHeaderElementInferenceEngine.cs
- ExpandCollapseProviderWrapper.cs
- DuplexChannelBinder.cs
- BreakRecordTable.cs
- ThreadExceptionDialog.cs
- ScrollChrome.cs
- SmtpNetworkElement.cs
- EntityModelSchemaGenerator.cs
- MenuItemBinding.cs
- ByteStreamGeometryContext.cs
- FontSizeConverter.cs
- ArrangedElement.cs
- ComponentManagerBroker.cs
- MediaElement.cs
- HashMembershipCondition.cs
- _ConnectOverlappedAsyncResult.cs
- WrappedIUnknown.cs
- OracleConnection.cs
- CustomErrorCollection.cs
- AsyncSerializedWorker.cs
- SecUtil.cs
- XmlMtomReader.cs
- UrlAuthFailureHandler.cs
- CompilationRelaxations.cs
- NameSpaceExtractor.cs
- VerificationException.cs
- FormClosingEvent.cs
- CatalogPartDesigner.cs
- MissingMethodException.cs
- NetNamedPipeBindingElement.cs
- safex509handles.cs
- SynchronizationValidator.cs
- PropertyCollection.cs
- SQLMoney.cs
- OdbcException.cs
- ExpressionList.cs
- SafeNativeMethods.cs
- AnnotationResource.cs
- FontUnitConverter.cs