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
- X509CertificateClaimSet.cs
- GeneralTransform3DGroup.cs
- PartialCachingControl.cs
- ProfileEventArgs.cs
- InvalidWMPVersionException.cs
- RegexMatchCollection.cs
- InstanceLockedException.cs
- MergeLocalizationDirectives.cs
- GcSettings.cs
- DockPattern.cs
- Expression.cs
- SHA512Managed.cs
- LinqDataSourceValidationException.cs
- FixedNode.cs
- Point3DCollectionValueSerializer.cs
- SelfIssuedAuthProofToken.cs
- ServerValidateEventArgs.cs
- ToolStripControlHost.cs
- XmlSchemaValidationException.cs
- XmlSchemaComplexContentRestriction.cs
- DefaultPropertyAttribute.cs
- FillErrorEventArgs.cs
- LocatorBase.cs
- CustomAttributeSerializer.cs
- ByteStorage.cs
- WebEventCodes.cs
- HttpListener.cs
- CodeTypeOfExpression.cs
- CompilerGeneratedAttribute.cs
- BrowsableAttribute.cs
- OdbcInfoMessageEvent.cs
- SecurityUniqueId.cs
- UseAttributeSetsAction.cs
- WebPartConnectionsCloseVerb.cs
- DataTableReaderListener.cs
- BasePattern.cs
- ValidatorAttribute.cs
- TypeSource.cs
- SQLGuid.cs
- DataGridViewCellStyleChangedEventArgs.cs
- DateTimeUtil.cs
- DataGridViewRowConverter.cs
- Stylus.cs
- WebServiceEndpoint.cs
- CharEnumerator.cs
- AttachInfo.cs
- TextSelectionProcessor.cs
- FontFamily.cs
- PointF.cs
- AttributeCollection.cs
- OutputCacheSettingsSection.cs
- DataContext.cs
- ConsumerConnectionPointCollection.cs
- ZipIOCentralDirectoryFileHeader.cs
- PasswordRecovery.cs
- SafeIUnknown.cs
- DetailsViewRow.cs
- EntityDataSourceMemberPath.cs
- DataServiceProcessingPipelineEventArgs.cs
- HttpRuntime.cs
- XamlSerializationHelper.cs
- UpdatePanelTriggerCollection.cs
- Int32Storage.cs
- CommandDesigner.cs
- Html32TextWriter.cs
- PerformanceCounterPermissionAttribute.cs
- LambdaExpression.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- PathFigureCollection.cs
- BindingsCollection.cs
- PropertyIDSet.cs
- MobileContainerDesigner.cs
- HtmlElementCollection.cs
- SizeConverter.cs
- ProfessionalColors.cs
- Encoder.cs
- XmlElementAttribute.cs
- WebRequestModuleElement.cs
- IPGlobalProperties.cs
- PeerNameRegistration.cs
- TableProviderWrapper.cs
- NonParentingControl.cs
- LogSwitch.cs
- SoapFault.cs
- BuildManagerHost.cs
- MetafileHeaderEmf.cs
- HtmlElement.cs
- ExpressionConverter.cs
- WpfGeneratedKnownTypes.cs
- XmlWellformedWriter.cs
- Translator.cs
- RichTextBox.cs
- XmlElementAttribute.cs
- ClosureBinding.cs
- COAUTHINFO.cs
- AttributedMetaModel.cs
- UnsafeNativeMethodsTablet.cs
- entityreference_tresulttype.cs
- SqlInternalConnectionSmi.cs
- XmlSchemaSubstitutionGroup.cs