Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BufferedWebEventProvider.cs
- PnrpPermission.cs
- ADMembershipUser.cs
- DynamicArgumentDialog.cs
- SpellerStatusTable.cs
- CounterSample.cs
- StaticSiteMapProvider.cs
- BlockCollection.cs
- PbrsForward.cs
- UserPrincipalNameElement.cs
- TagPrefixCollection.cs
- StaticDataManager.cs
- PageMediaType.cs
- CodeAttributeDeclaration.cs
- ScrollableControl.cs
- ResourceSet.cs
- WindowShowOrOpenTracker.cs
- ExpressionNormalizer.cs
- FormViewDeleteEventArgs.cs
- SqlNotificationEventArgs.cs
- Debug.cs
- TrackingLocation.cs
- PropertyOrder.cs
- HtmlContainerControl.cs
- ClientEventManager.cs
- Repeater.cs
- MessageHeaderT.cs
- AlternateViewCollection.cs
- EntityDataSourceEntitySetNameItem.cs
- XPathNodeIterator.cs
- RolePrincipal.cs
- CompiledELinqQueryState.cs
- X509Certificate2.cs
- DataGridViewAccessibleObject.cs
- PolicyManager.cs
- MenuItemBindingCollection.cs
- UInt16Converter.cs
- MSAAEventDispatcher.cs
- FileEnumerator.cs
- SimpleType.cs
- RootBrowserWindowProxy.cs
- safemediahandle.cs
- SQLByteStorage.cs
- Profiler.cs
- BaseResourcesBuildProvider.cs
- CodeDelegateCreateExpression.cs
- ExceptionUtility.cs
- InputScopeAttribute.cs
- CriticalExceptions.cs
- RelatedView.cs
- Size.cs
- WeakEventManager.cs
- SecurityPermission.cs
- TypeUsage.cs
- CaseInsensitiveComparer.cs
- QueryCacheEntry.cs
- ConfigurationException.cs
- WebPartConnectionCollection.cs
- BitmapEffect.cs
- InputElement.cs
- FrameSecurityDescriptor.cs
- MenuItemStyleCollection.cs
- TdsParserStaticMethods.cs
- TextSelectionProcessor.cs
- METAHEADER.cs
- TypedReference.cs
- MeasureItemEvent.cs
- ToolboxComponentsCreatedEventArgs.cs
- TextWriter.cs
- ExceptionUtility.cs
- SimpleBitVector32.cs
- GB18030Encoding.cs
- AspNetCompatibilityRequirementsMode.cs
- XmlTextEncoder.cs
- BitmapEffectGroup.cs
- AdCreatedEventArgs.cs
- WindowClosedEventArgs.cs
- CommandExpr.cs
- RemoteX509AsymmetricSecurityKey.cs
- ReadOnlyHierarchicalDataSourceView.cs
- SqlDelegatedTransaction.cs
- sqlstateclientmanager.cs
- CodePropertyReferenceExpression.cs
- ConfigUtil.cs
- ActivityCompletionCallbackWrapper.cs
- ExitEventArgs.cs
- EncodingNLS.cs
- dbdatarecord.cs
- DataTableNewRowEvent.cs
- XmlTextEncoder.cs
- CookielessHelper.cs
- DbProviderFactory.cs
- MsmqIntegrationInputMessage.cs
- PerfCounterSection.cs
- SHA1CryptoServiceProvider.cs
- PeerTransportSecuritySettings.cs
- DataBinding.cs
- Timer.cs
- CodeSnippetExpression.cs
- ServiceBuildProvider.cs