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
- MetafileHeader.cs
- DatagridviewDisplayedBandsData.cs
- ExclusiveCanonicalizationTransform.cs
- DataGridViewCellStyleConverter.cs
- PointCollection.cs
- DesignRelation.cs
- XmlQueryCardinality.cs
- SiteMembershipCondition.cs
- SqlUtil.cs
- ImageAutomationPeer.cs
- IncrementalHitTester.cs
- Operand.cs
- ActiveXSite.cs
- DtrList.cs
- NoneExcludedImageIndexConverter.cs
- CompilationUtil.cs
- PropertyOverridesTypeEditor.cs
- PartBasedPackageProperties.cs
- AlgoModule.cs
- StrongName.cs
- DataGridColumnEventArgs.cs
- Formatter.cs
- OptimizedTemplateContentHelper.cs
- ClientScriptManager.cs
- MetaType.cs
- BitmapImage.cs
- ZoneLinkButton.cs
- Ref.cs
- ConnectorSelectionGlyph.cs
- OutputScopeManager.cs
- ContractMapping.cs
- DoubleConverter.cs
- RenameRuleObjectDialog.Designer.cs
- SerializerProvider.cs
- UrlAuthFailedErrorFormatter.cs
- XmlSchemas.cs
- InvalidCommandTreeException.cs
- MetadataCache.cs
- HierarchicalDataSourceIDConverter.cs
- XmlNamedNodeMap.cs
- BrowserCapabilitiesCompiler.cs
- SqlNodeAnnotation.cs
- Int64Storage.cs
- CodeTypeReferenceCollection.cs
- BinaryWriter.cs
- FixedBufferAttribute.cs
- TextStore.cs
- SimpleApplicationHost.cs
- NumberAction.cs
- ChannelDispatcherCollection.cs
- StringValueSerializer.cs
- NullEntityWrapper.cs
- ArrayTypeMismatchException.cs
- DeclaredTypeValidatorAttribute.cs
- InternalBufferOverflowException.cs
- StringResourceManager.cs
- FutureFactory.cs
- ChannelDemuxer.cs
- EntityStoreSchemaFilterEntry.cs
- TargetException.cs
- XmlReflectionMember.cs
- ContentDisposition.cs
- CompilerWrapper.cs
- XmlParserContext.cs
- ChtmlTextWriter.cs
- UpdatePanel.cs
- DiscoveryClientElement.cs
- ContentFileHelper.cs
- ConcurrentQueue.cs
- UserControlParser.cs
- RtfNavigator.cs
- PropertiesTab.cs
- BamlLocalizer.cs
- TextChangedEventArgs.cs
- SamlAuthorizationDecisionStatement.cs
- Int64Storage.cs
- BindingCollection.cs
- ApplicationProxyInternal.cs
- SemaphoreFullException.cs
- ApplicationServicesHostFactory.cs
- StringOutput.cs
- RightsManagementInformation.cs
- TraceContext.cs
- Flowchart.cs
- TableRow.cs
- XmlDataContract.cs
- figurelength.cs
- ClientUIRequest.cs
- DbConnectionPoolOptions.cs
- SynchronizedReadOnlyCollection.cs
- CodeDOMUtility.cs
- RepeatEnumerable.cs
- SmtpMail.cs
- RichTextBoxConstants.cs
- QuadraticBezierSegment.cs
- LoadMessageLogger.cs
- OletxTransactionManager.cs
- PositiveTimeSpanValidator.cs
- DynamicActivityProperty.cs
- XmlObjectSerializerWriteContextComplexJson.cs