Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- FormParameter.cs
- PeerReferralPolicy.cs
- XmlRootAttribute.cs
- JsonSerializer.cs
- TypeListConverter.cs
- Symbol.cs
- XmlComment.cs
- PerformanceCounterTraceRecord.cs
- Pair.cs
- SpecularMaterial.cs
- ArraySubsetEnumerator.cs
- HWStack.cs
- MimeMapping.cs
- ControlDesigner.cs
- EventLogPermissionAttribute.cs
- VectorConverter.cs
- ControlCommandSet.cs
- PermissionRequestEvidence.cs
- GrowingArray.cs
- DynamicRendererThreadManager.cs
- EpmAttributeNameBuilder.cs
- XmlDocumentSerializer.cs
- GridViewRowCollection.cs
- CalendarDesigner.cs
- GridProviderWrapper.cs
- Drawing.cs
- RawContentTypeMapper.cs
- AssemblyResourceLoader.cs
- TypeDescriptor.cs
- WeakRefEnumerator.cs
- ForceCopyBuildProvider.cs
- RemotingSurrogateSelector.cs
- ServiceManagerHandle.cs
- SchemaObjectWriter.cs
- CodeCommentStatementCollection.cs
- TypeDescriptionProvider.cs
- TagPrefixAttribute.cs
- RoleManagerSection.cs
- UpdateTranslator.cs
- AttachInfo.cs
- EntityKey.cs
- InvalidProgramException.cs
- Accessible.cs
- AliasExpr.cs
- FilteredXmlReader.cs
- SqlInternalConnection.cs
- Propagator.JoinPropagator.cs
- ADMembershipProvider.cs
- CurrentChangedEventManager.cs
- UnsafeNativeMethods.cs
- CommandArguments.cs
- WorkflowInstanceUnhandledExceptionRecord.cs
- PropertyRef.cs
- MsmqIntegrationProcessProtocolHandler.cs
- COM2TypeInfoProcessor.cs
- Transform3D.cs
- PrintEvent.cs
- DoubleConverter.cs
- UserControlParser.cs
- RuleSetReference.cs
- SafeNativeMethods.cs
- X509CertificateValidator.cs
- CodeGenerator.cs
- InkSerializer.cs
- BeginStoryboard.cs
- WorkItem.cs
- DBCommandBuilder.cs
- SelfIssuedAuthRSAPKCS1SignatureDeformatter.cs
- SqlClientWrapperSmiStream.cs
- DependencyProperty.cs
- XmlSchemaSequence.cs
- ParserHooks.cs
- UIPermission.cs
- DataBindingHandlerAttribute.cs
- RegexBoyerMoore.cs
- ButtonPopupAdapter.cs
- DataExpression.cs
- RefreshPropertiesAttribute.cs
- DataException.cs
- ChineseLunisolarCalendar.cs
- MdiWindowListStrip.cs
- PreviousTrackingServiceAttribute.cs
- TextProperties.cs
- ListControl.cs
- WebPartCatalogAddVerb.cs
- SiteOfOriginContainer.cs
- DataSourceXmlElementAttribute.cs
- MachineKeySection.cs
- XmlIlTypeHelper.cs
- InstanceKeyView.cs
- FocusTracker.cs
- EventLogHandle.cs
- DataMemberAttribute.cs
- CacheHelper.cs
- BufferedReceiveManager.cs
- AutomationPropertyInfo.cs
- FrameworkTextComposition.cs
- PolyQuadraticBezierSegment.cs
- PersonalizationProvider.cs
- FeatureManager.cs