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
- EndOfStreamException.cs
- EntityConnectionStringBuilderItem.cs
- Win32.cs
- CryptoStream.cs
- MeshGeometry3D.cs
- SelectionChangedEventArgs.cs
- PartialCachingControl.cs
- CustomBindingElement.cs
- RoleManagerEventArgs.cs
- ZoneMembershipCondition.cs
- ToolStripLocationCancelEventArgs.cs
- XmlCompatibilityReader.cs
- HitTestFilterBehavior.cs
- ProjectionNode.cs
- ArraySortHelper.cs
- Descriptor.cs
- EdmScalarPropertyAttribute.cs
- Point3DConverter.cs
- ServiceDescriptions.cs
- HelpInfo.cs
- FilteredXmlReader.cs
- IsolatedStorage.cs
- BindingGroup.cs
- PaintEvent.cs
- CapabilitiesSection.cs
- EndPoint.cs
- NullableIntSumAggregationOperator.cs
- BaseCollection.cs
- Pipe.cs
- CollectionViewSource.cs
- _CommandStream.cs
- SizeIndependentAnimationStorage.cs
- HttpRuntimeSection.cs
- SHA512Managed.cs
- Floater.cs
- OptimalBreakSession.cs
- FileSystemEnumerable.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- TextElement.cs
- _SSPIWrapper.cs
- ThaiBuddhistCalendar.cs
- ToolStripCollectionEditor.cs
- NativeMethods.cs
- Util.cs
- SymbolResolver.cs
- KeyedPriorityQueue.cs
- StreamUpgradeBindingElement.cs
- BrowserCapabilitiesFactoryBase.cs
- CodeDefaultValueExpression.cs
- DataServiceStreamResponse.cs
- GlobalizationSection.cs
- TextRunCache.cs
- MultiByteCodec.cs
- StateMachineTimers.cs
- Function.cs
- HtmlControlPersistable.cs
- ViewGenerator.cs
- BindingMAnagerBase.cs
- DBSchemaTable.cs
- DeflateEmulationStream.cs
- MobileListItem.cs
- WpfKnownMember.cs
- DispatchWrapper.cs
- PolicyStatement.cs
- xdrvalidator.cs
- HotSpotCollection.cs
- KeyGestureValueSerializer.cs
- WindowsFormsDesignerOptionService.cs
- UDPClient.cs
- QueryStatement.cs
- XmlBufferReader.cs
- EnumConverter.cs
- XmlSchemaComplexType.cs
- ColumnPropertiesGroup.cs
- CorePropertiesFilter.cs
- DataTableTypeConverter.cs
- ThrowHelper.cs
- Thickness.cs
- SuppressIldasmAttribute.cs
- EntityCommand.cs
- VBCodeProvider.cs
- TableLayoutRowStyleCollection.cs
- RSAOAEPKeyExchangeDeformatter.cs
- XmlElementAttributes.cs
- CuspData.cs
- _SslStream.cs
- ExtendedPropertyDescriptor.cs
- SqlTypesSchemaImporter.cs
- SEHException.cs
- ConnectionProviderAttribute.cs
- TypeBuilderInstantiation.cs
- InvocationExpression.cs
- DataIdProcessor.cs
- ExpressionEditorAttribute.cs
- CancelAsyncOperationRequest.cs
- DeploymentSection.cs
- UIElementIsland.cs
- ModifierKeysValueSerializer.cs
- InheritanceRules.cs
- SqlXml.cs