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
- EncoderParameter.cs
- SiteMap.cs
- EdmScalarPropertyAttribute.cs
- SqlDataSourceSummaryPanel.cs
- KeyInstance.cs
- Help.cs
- SerializationHelper.cs
- ZoneButton.cs
- Trace.cs
- ComAwareEventInfo.cs
- AnnotationDocumentPaginator.cs
- Sql8ExpressionRewriter.cs
- DbProviderSpecificTypePropertyAttribute.cs
- NavigationEventArgs.cs
- SqlParameter.cs
- DynamicResourceExtensionConverter.cs
- ProxyWebPartConnectionCollection.cs
- GridProviderWrapper.cs
- KeyEventArgs.cs
- HttpEncoder.cs
- OracleConnection.cs
- TaskDesigner.cs
- TableRowCollection.cs
- DataServices.cs
- DataGridCellsPanel.cs
- EraserBehavior.cs
- OdbcUtils.cs
- RequestNavigateEventArgs.cs
- StringSorter.cs
- EventPropertyMap.cs
- ContactManager.cs
- TerminatorSinks.cs
- EnumType.cs
- BindingsCollection.cs
- IEnumerable.cs
- InternalBase.cs
- RangeValuePatternIdentifiers.cs
- TextSelection.cs
- WaitHandleCannotBeOpenedException.cs
- ProcessInfo.cs
- Odbc32.cs
- XamlDesignerSerializationManager.cs
- BamlStream.cs
- EntityParameterCollection.cs
- RNGCryptoServiceProvider.cs
- DefaultParameterValueAttribute.cs
- RoutedPropertyChangedEventArgs.cs
- URLIdentityPermission.cs
- BatchServiceHost.cs
- ToolStripGripRenderEventArgs.cs
- Overlapped.cs
- ByteRangeDownloader.cs
- RoleGroupCollection.cs
- Help.cs
- ComponentResourceManager.cs
- DictionarySectionHandler.cs
- CompilerResults.cs
- brushes.cs
- HotSpotCollectionEditor.cs
- DrawListViewSubItemEventArgs.cs
- ScrollItemProviderWrapper.cs
- FormClosingEvent.cs
- ObfuscationAttribute.cs
- TemplatePropertyEntry.cs
- OrderedDictionary.cs
- XmlCustomFormatter.cs
- XPathAncestorQuery.cs
- EventLogEntry.cs
- VoiceObjectToken.cs
- WebControl.cs
- CreateUserWizardStep.cs
- HandoffBehavior.cs
- AutomationPatternInfo.cs
- UnsafeNativeMethods.cs
- UInt64Converter.cs
- ToolStripPanelSelectionBehavior.cs
- ExtentCqlBlock.cs
- WebPartCatalogCloseVerb.cs
- ComponentChangingEvent.cs
- Matrix.cs
- ApplicationHost.cs
- ConsumerConnectionPoint.cs
- ClientConfigPaths.cs
- SQLCharsStorage.cs
- CheckBoxPopupAdapter.cs
- Transform.cs
- CacheOutputQuery.cs
- BindableTemplateBuilder.cs
- NetTcpBindingCollectionElement.cs
- AdPostCacheSubstitution.cs
- EventToken.cs
- BufferedStream.cs
- EntitySetBase.cs
- CompilerLocalReference.cs
- FontFamilyIdentifier.cs
- UriExt.cs
- SuppressMessageAttribute.cs
- DynamicActivity.cs
- NumberFunctions.cs
- WebControlAdapter.cs