Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ReadOnlyHierarchicalDataSource.cs
- DataSysAttribute.cs
- storepermissionattribute.cs
- RemoteWebConfigurationHost.cs
- Screen.cs
- ObjectSet.cs
- RuleInfoComparer.cs
- LineSegment.cs
- MbpInfo.cs
- XmlHierarchicalEnumerable.cs
- DocumentSchemaValidator.cs
- CommonBehaviorsSection.cs
- RadioButtonBaseAdapter.cs
- ComponentEvent.cs
- TypeCacheManager.cs
- StreamAsIStream.cs
- DataGridViewEditingControlShowingEventArgs.cs
- SqlEnums.cs
- SignerInfo.cs
- DataGridViewColumnEventArgs.cs
- KeyValueConfigurationCollection.cs
- CacheRequest.cs
- QuaternionValueSerializer.cs
- RelationshipNavigation.cs
- XPathConvert.cs
- MemberCollection.cs
- FlowLayoutPanel.cs
- CaseCqlBlock.cs
- SymbolMethod.cs
- userdatakeys.cs
- DataGridViewHeaderCell.cs
- MetadataResolver.cs
- TextEditorDragDrop.cs
- ITreeGenerator.cs
- ConnectionPoint.cs
- HighlightComponent.cs
- Completion.cs
- InputLanguageManager.cs
- BitmapEffectDrawingContent.cs
- ServerValidateEventArgs.cs
- DesignerDataView.cs
- Single.cs
- MatrixStack.cs
- MultilineStringConverter.cs
- SeekableReadStream.cs
- EntityModelBuildProvider.cs
- PlacementWorkspace.cs
- GridViewUpdatedEventArgs.cs
- SqlParameter.cs
- SwitchElementsCollection.cs
- MatrixCamera.cs
- TrackBarRenderer.cs
- TreeNodeCollection.cs
- SrgsElementFactoryCompiler.cs
- StdRegProviderWrapper.cs
- KeyEventArgs.cs
- XpsException.cs
- DirectoryNotFoundException.cs
- BindingExpressionBase.cs
- ModuleBuilder.cs
- DebuggerService.cs
- SecurityPolicySection.cs
- WebServiceEnumData.cs
- ConnectionProviderAttribute.cs
- ResourceAttributes.cs
- LocalizeDesigner.cs
- FastPropertyAccessor.cs
- DebugView.cs
- QueueException.cs
- CommandField.cs
- XmlExpressionDumper.cs
- StrongTypingException.cs
- MessageAction.cs
- BindingMemberInfo.cs
- TextRangeAdaptor.cs
- MetadataItemEmitter.cs
- ProfilePropertyNameValidator.cs
- ProjectedSlot.cs
- ISFTagAndGuidCache.cs
- DesigntimeLicenseContextSerializer.cs
- StaticDataManager.cs
- CompiledQueryCacheEntry.cs
- AnimatedTypeHelpers.cs
- FormsAuthenticationCredentials.cs
- HtmlInputControl.cs
- FormViewPageEventArgs.cs
- RuntimeArgumentHandle.cs
- CommentGlyph.cs
- WorkflowTransactionService.cs
- FloaterParaClient.cs
- HostUtils.cs
- TaskFileService.cs
- WebPartUserCapability.cs
- DebuggerAttributes.cs
- DataGridViewColumnTypeEditor.cs
- InternalBufferOverflowException.cs
- NegotiateStream.cs
- PathNode.cs
- LayoutTable.cs
- DefaultObjectSerializer.cs