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
- ScriptIgnoreAttribute.cs
- FlowDocumentFormatter.cs
- QueryOperationResponseOfT.cs
- BasicCellRelation.cs
- EdmComplexPropertyAttribute.cs
- DesignerOptionService.cs
- IERequestCache.cs
- ParsedAttributeCollection.cs
- Privilege.cs
- ContextMenu.cs
- QilInvoke.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- PointCollectionConverter.cs
- CodeFieldReferenceExpression.cs
- MetafileHeader.cs
- HttpChannelHelpers.cs
- StyleTypedPropertyAttribute.cs
- WindowManager.cs
- CharacterMetricsDictionary.cs
- RuntimeArgumentHandle.cs
- WebPartMinimizeVerb.cs
- complextypematerializer.cs
- DataGridDetailsPresenterAutomationPeer.cs
- COM2PropertyBuilderUITypeEditor.cs
- DbgUtil.cs
- ProjectedSlot.cs
- FacetEnabledSchemaElement.cs
- WorkflowInstance.cs
- Rectangle.cs
- RubberbandSelector.cs
- DriveNotFoundException.cs
- AsyncPostBackErrorEventArgs.cs
- JoinSymbol.cs
- path.cs
- AssemblyUtil.cs
- CapacityStreamGeometryContext.cs
- PkcsUtils.cs
- Crypto.cs
- Size3DConverter.cs
- PerfCounterSection.cs
- StrokeIntersection.cs
- HttpHostedTransportConfiguration.cs
- StyleCollectionEditor.cs
- WCFBuildProvider.cs
- IOException.cs
- DockProviderWrapper.cs
- DragEventArgs.cs
- ScrollData.cs
- TextDecorationCollection.cs
- Attributes.cs
- XmlSchemaProviderAttribute.cs
- DataGridViewTopLeftHeaderCell.cs
- AssemblyLoader.cs
- StorageComplexPropertyMapping.cs
- ListChangedEventArgs.cs
- WmlTextViewAdapter.cs
- OuterGlowBitmapEffect.cs
- XmlSchemaGroupRef.cs
- AtomicFile.cs
- ComplexBindingPropertiesAttribute.cs
- HandlerMappingMemo.cs
- ToolStripButton.cs
- IsolatedStoragePermission.cs
- XamlBrushSerializer.cs
- Activation.cs
- EntryWrittenEventArgs.cs
- DataSetSchema.cs
- XmlSerializerFactory.cs
- ExecutionEngineException.cs
- DesignColumn.cs
- PrivateFontCollection.cs
- CodeVariableDeclarationStatement.cs
- Permission.cs
- SystemInformation.cs
- Content.cs
- SubclassTypeValidator.cs
- GlobalizationSection.cs
- ForEachAction.cs
- HttpProfileBase.cs
- Message.cs
- XmlAttributeAttribute.cs
- ProtocolViolationException.cs
- SkinBuilder.cs
- Size3DValueSerializer.cs
- BindingOperations.cs
- XmlNamedNodeMap.cs
- ConfigViewGenerator.cs
- PropertyDescriptor.cs
- ExportOptions.cs
- StyleCollectionEditor.cs
- BitmapFrameEncode.cs
- storepermissionattribute.cs
- StartUpEventArgs.cs
- OdbcCommandBuilder.cs
- OracleDateTime.cs
- DataGridViewCellLinkedList.cs
- TextTreeUndoUnit.cs
- RtfControlWordInfo.cs
- MouseWheelEventArgs.cs
- LoadMessageLogger.cs