Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Security / FormsAuthenticationEventArgs.cs / 1305376 / 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. /// 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. /// 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
- MobileControlsSection.cs
- FaultBookmark.cs
- ValidationRule.cs
- Dispatcher.cs
- XmlArrayAttribute.cs
- CqlParser.cs
- ProgressPage.cs
- DivideByZeroException.cs
- TemplateKey.cs
- UnsafeNativeMethodsTablet.cs
- Point3DCollection.cs
- RadioButton.cs
- ClassicBorderDecorator.cs
- CancelEventArgs.cs
- QilCloneVisitor.cs
- ResXDataNode.cs
- HttpClientChannel.cs
- WindowsSysHeader.cs
- ClientSettingsSection.cs
- DataBoundControl.cs
- BufferModesCollection.cs
- ImportOptions.cs
- EncoderFallback.cs
- Stroke2.cs
- TableLayoutPanel.cs
- OSFeature.cs
- IndexedEnumerable.cs
- CompositeScriptReference.cs
- EnvelopedPkcs7.cs
- HttpHandlerAction.cs
- DurableInstanceProvider.cs
- WindowsTokenRoleProvider.cs
- BrowsableAttribute.cs
- InputProcessorProfiles.cs
- DataBindingExpressionBuilder.cs
- GraphicsState.cs
- WindowsImpersonationContext.cs
- Util.cs
- MultipleViewProviderWrapper.cs
- ILGen.cs
- ListDictionaryInternal.cs
- GeneralTransformGroup.cs
- MinMaxParagraphWidth.cs
- EncryptedKey.cs
- ModelProperty.cs
- CharacterBuffer.cs
- QueueException.cs
- WrappedIUnknown.cs
- ContractReference.cs
- EdmToObjectNamespaceMap.cs
- OrderedDictionary.cs
- SyntaxCheck.cs
- ArrayListCollectionBase.cs
- PromptBuilder.cs
- AVElementHelper.cs
- UniqueIdentifierService.cs
- FontEmbeddingManager.cs
- MinMaxParagraphWidth.cs
- WSTrustDec2005.cs
- CodeMemberMethod.cs
- BindingGroup.cs
- CodeGenerator.cs
- EmbeddedObject.cs
- TextDecoration.cs
- MergeFilterQuery.cs
- DependencyPropertyHelper.cs
- Simplifier.cs
- SymmetricSecurityProtocol.cs
- _AutoWebProxyScriptEngine.cs
- EntityDataSourceQueryBuilder.cs
- Camera.cs
- ProcessModelInfo.cs
- TabItemWrapperAutomationPeer.cs
- QueryConverter.cs
- ProjectionRewriter.cs
- DataGridColumnCollection.cs
- Calendar.cs
- SqlDataSourceConfigureSortForm.cs
- XmlEventCache.cs
- TypeToken.cs
- CalloutQueueItem.cs
- ColumnBinding.cs
- DateTimeValueSerializerContext.cs
- LayoutExceptionEventArgs.cs
- unsafenativemethodsother.cs
- EdmFunction.cs
- DocumentCollection.cs
- GridViewSortEventArgs.cs
- ColorContext.cs
- AtomParser.cs
- ReadOnlyDictionary.cs
- SmiContext.cs
- SevenBitStream.cs
- XmlnsCache.cs
- AnimationClock.cs
- CommandLineParser.cs
- SessionStateContainer.cs
- JournalEntry.cs
- SimpleBitVector32.cs
- DocumentPageHost.cs