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
- GeometryConverter.cs
- EventMappingSettings.cs
- ContainerUIElement3D.cs
- HtmlLiteralTextAdapter.cs
- GcHandle.cs
- TableAdapterManagerMethodGenerator.cs
- TypeUtil.cs
- AstTree.cs
- FixedSOMPageElement.cs
- ValidatedControlConverter.cs
- FormParameter.cs
- QilTypeChecker.cs
- PenLineCapValidation.cs
- PerCallInstanceContextProvider.cs
- StoreAnnotationsMap.cs
- DataSourceCache.cs
- HostSecurityManager.cs
- ServicePoint.cs
- ResourceBinder.cs
- MulticastOption.cs
- XPathNavigatorReader.cs
- QilLiteral.cs
- ButtonBaseAutomationPeer.cs
- Peer.cs
- MSAANativeProvider.cs
- PKCS1MaskGenerationMethod.cs
- SafeNativeMethods.cs
- Point3DValueSerializer.cs
- EntityModelSchemaGenerator.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- SessionSwitchEventArgs.cs
- FormsAuthenticationUserCollection.cs
- OutOfMemoryException.cs
- Size3D.cs
- ToolConsole.cs
- Compiler.cs
- XslUrlEditor.cs
- MimeTypePropertyAttribute.cs
- OdbcDataReader.cs
- InputMethod.cs
- MobileFormsAuthentication.cs
- HeaderedContentControl.cs
- BitmapCacheBrush.cs
- SqlDataReader.cs
- XmlSchemaImport.cs
- EntityDataSourceContextCreatedEventArgs.cs
- SvcMapFileSerializer.cs
- Ref.cs
- DefaultSection.cs
- _NegotiateClient.cs
- parserscommon.cs
- BindingGraph.cs
- InputDevice.cs
- ObservableDictionary.cs
- WindowsStatic.cs
- TableRow.cs
- PeerInvitationResponse.cs
- DesignerCatalogPartChrome.cs
- ZipIOLocalFileBlock.cs
- SchemaMerger.cs
- StringComparer.cs
- RSAPKCS1KeyExchangeFormatter.cs
- SoapWriter.cs
- _NTAuthentication.cs
- ValidatorAttribute.cs
- CheckBox.cs
- DataKeyArray.cs
- OuterGlowBitmapEffect.cs
- InternalControlCollection.cs
- GridToolTip.cs
- PrinterSettings.cs
- WebPartDeleteVerb.cs
- WeakReferenceEnumerator.cs
- GridPatternIdentifiers.cs
- LogicalExpr.cs
- FastEncoder.cs
- validationstate.cs
- UxThemeWrapper.cs
- RuntimeConfigLKG.cs
- RectangleConverter.cs
- DataTransferEventArgs.cs
- TypeDescriptor.cs
- AdornerLayer.cs
- MasterPageBuildProvider.cs
- SessionEndedEventArgs.cs
- DrawingBrush.cs
- PathFigureCollection.cs
- HtmlDocument.cs
- DescendantQuery.cs
- QuaternionAnimationBase.cs
- SmtpFailedRecipientsException.cs
- XmlJsonWriter.cs
- RepeaterCommandEventArgs.cs
- OdbcRowUpdatingEvent.cs
- SmiContextFactory.cs
- TransformProviderWrapper.cs
- WeakHashtable.cs
- Unit.cs
- InstanceLockLostException.cs
- ResolveMatches11.cs