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
- WebPartMenuStyle.cs
- SettingsSavedEventArgs.cs
- SmiEventSink.cs
- CodeIterationStatement.cs
- RSACryptoServiceProvider.cs
- TextChange.cs
- ControlValuePropertyAttribute.cs
- TcpTransportBindingElement.cs
- SystemPens.cs
- AnnotationAdorner.cs
- DateTimeSerializationSection.cs
- NestedContainer.cs
- CorrelationToken.cs
- DeclarativeCatalogPart.cs
- MediaTimeline.cs
- Msec.cs
- ClipboardData.cs
- COM2Properties.cs
- SelectionBorderGlyph.cs
- AliasedSlot.cs
- PerfCounterSection.cs
- SafeCryptHandles.cs
- StackSpiller.Bindings.cs
- LayoutSettings.cs
- SimpleApplicationHost.cs
- AbsoluteQuery.cs
- SevenBitStream.cs
- ListViewUpdateEventArgs.cs
- CroppedBitmap.cs
- PropertyDescriptor.cs
- ContentPlaceHolderDesigner.cs
- UpdatePanelTriggerCollection.cs
- FloaterParagraph.cs
- SqlFlattener.cs
- SQLBinaryStorage.cs
- ConfigurationProviderException.cs
- columnmapfactory.cs
- WorkflowEventArgs.cs
- EndSelectCardRequest.cs
- WebPartUserCapability.cs
- EntityCommandCompilationException.cs
- DesignTimeXamlWriter.cs
- XPathExpr.cs
- CodeDOMUtility.cs
- PenThread.cs
- SchemaElement.cs
- BamlVersionHeader.cs
- HttpServerUtilityWrapper.cs
- Wizard.cs
- GlyphRun.cs
- ThreadPool.cs
- EntityKeyElement.cs
- SecurityException.cs
- EventOpcode.cs
- NonBatchDirectoryCompiler.cs
- Animatable.cs
- XslCompiledTransform.cs
- StateMachineSubscriptionManager.cs
- SqlProviderServices.cs
- HashLookup.cs
- ToolStripRenderer.cs
- Ref.cs
- DesignerSelectionListAdapter.cs
- ReadOnlyDataSourceView.cs
- Vars.cs
- CompositeCollection.cs
- WsatEtwTraceListener.cs
- DateTimeConverter2.cs
- ResourceAttributes.cs
- NamespaceQuery.cs
- TileBrush.cs
- PipelineModuleStepContainer.cs
- SystemIPv6InterfaceProperties.cs
- LocalFileSettingsProvider.cs
- RenderOptions.cs
- AbsoluteQuery.cs
- Frame.cs
- CmsInterop.cs
- ContextStack.cs
- PackWebRequestFactory.cs
- ConfigXmlWhitespace.cs
- GradientPanel.cs
- TemplateKey.cs
- InternalEnumValidator.cs
- ReadOnlyMetadataCollection.cs
- DataBoundControlAdapter.cs
- SamlSecurityTokenAuthenticator.cs
- DateTimeValueSerializerContext.cs
- ObjectItemAssemblyLoader.cs
- ApplicationSecurityInfo.cs
- LogLogRecord.cs
- ValidationErrorCollection.cs
- XDeferredAxisSource.cs
- TableRowGroup.cs
- DataMemberAttribute.cs
- SQLInt16.cs
- EncodedStreamFactory.cs
- RotateTransform3D.cs
- BaseProcessor.cs
- DataTemplateKey.cs