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
- NumericUpDownAcceleration.cs
- SafeCoTaskMem.cs
- Message.cs
- GenericAuthenticationEventArgs.cs
- PeerConnector.cs
- XPathDocumentIterator.cs
- ScrollViewerAutomationPeer.cs
- RangeValuePatternIdentifiers.cs
- rsa.cs
- InputScopeManager.cs
- ConfigUtil.cs
- PageStatePersister.cs
- GroupBox.cs
- VerificationAttribute.cs
- ColumnResizeUndoUnit.cs
- UriWriter.cs
- HMACMD5.cs
- SortedSetDebugView.cs
- DbMetaDataColumnNames.cs
- FontInfo.cs
- httpapplicationstate.cs
- XmlILModule.cs
- TransformProviderWrapper.cs
- TemplateColumn.cs
- ThreadAttributes.cs
- VarRefManager.cs
- DisplayInformation.cs
- HttpVersion.cs
- CompilerParameters.cs
- ProxyFragment.cs
- Pkcs9Attribute.cs
- ContextMenu.cs
- WebPartChrome.cs
- ExecutionProperties.cs
- RadioButtonPopupAdapter.cs
- Process.cs
- ShutDownListener.cs
- ChangePassword.cs
- ThemeDirectoryCompiler.cs
- NameObjectCollectionBase.cs
- Point3DCollectionConverter.cs
- Queue.cs
- CompositeFontParser.cs
- XmlSchemaSimpleTypeRestriction.cs
- PeerToPeerException.cs
- SafeEventLogWriteHandle.cs
- CompiledQuery.cs
- ArraySortHelper.cs
- FixedSOMElement.cs
- ColumnBinding.cs
- DaylightTime.cs
- PeerContact.cs
- UnsupportedPolicyOptionsException.cs
- OleDbParameter.cs
- MemberInfoSerializationHolder.cs
- AnimatedTypeHelpers.cs
- DataRowChangeEvent.cs
- HtmlElement.cs
- DataGridViewLinkColumn.cs
- XmlAttributeCollection.cs
- FileUtil.cs
- DesignerActionList.cs
- Object.cs
- AssemblyBuilder.cs
- SecurityUtils.cs
- KeyToListMap.cs
- WebControlAdapter.cs
- BooleanToVisibilityConverter.cs
- ListControl.cs
- FixedSOMImage.cs
- RuntimeHelpers.cs
- MailHeaderInfo.cs
- precedingsibling.cs
- WinFormsSpinner.cs
- OleDbRowUpdatedEvent.cs
- PerformanceCounterLib.cs
- ToolStripCodeDomSerializer.cs
- X509CertificateCollection.cs
- DataBindingList.cs
- SubMenuStyleCollection.cs
- FixedTextContainer.cs
- UIElementParagraph.cs
- ParallelDesigner.xaml.cs
- ServiceDescriptions.cs
- CodePropertyReferenceExpression.cs
- StandardToolWindows.cs
- NullableBoolConverter.cs
- AdRotatorDesigner.cs
- wmiprovider.cs
- XmlElement.cs
- ScriptBehaviorDescriptor.cs
- FacetChecker.cs
- WSHttpTransportSecurityElement.cs
- SessionEndingCancelEventArgs.cs
- NewItemsContextMenuStrip.cs
- CodeDelegateCreateExpression.cs
- EntityUtil.cs
- OdbcConnectionHandle.cs
- ZipIOCentralDirectoryFileHeader.cs
- URIFormatException.cs