Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- WebFaultClientMessageInspector.cs
- TemplateInstanceAttribute.cs
- StringReader.cs
- UserNamePasswordValidator.cs
- RectangleGeometry.cs
- Type.cs
- UIElementParagraph.cs
- Rules.cs
- SqlParameterCollection.cs
- HttpSessionStateBase.cs
- SystemDiagnosticsSection.cs
- SystemPens.cs
- GridViewCellAutomationPeer.cs
- IndexedEnumerable.cs
- GridViewSortEventArgs.cs
- Help.cs
- HtmlTitle.cs
- NotConverter.cs
- IxmlLineInfo.cs
- SizeFConverter.cs
- ProvidersHelper.cs
- BoundPropertyEntry.cs
- RenderData.cs
- DynamicHyperLink.cs
- jithelpers.cs
- CssClassPropertyAttribute.cs
- ProjectionCamera.cs
- ActiveXHost.cs
- SafeCloseHandleCritical.cs
- ResourceExpressionEditorSheet.cs
- InvalidProgramException.cs
- EventEntry.cs
- WmlListAdapter.cs
- AssemblyBuilder.cs
- NullReferenceException.cs
- CommonDialog.cs
- UnsafeNativeMethods.cs
- MergeFailedEvent.cs
- LinkedResource.cs
- DataColumnPropertyDescriptor.cs
- NativeMethods.cs
- shaperfactory.cs
- UnSafeCharBuffer.cs
- BasicExpressionVisitor.cs
- SoapCodeExporter.cs
- DateTimeUtil.cs
- WebPartExportVerb.cs
- ThreadTrace.cs
- MetadataArtifactLoaderResource.cs
- WebServiceData.cs
- XmlAtomicValue.cs
- SafeCryptoHandles.cs
- Rotation3DAnimationUsingKeyFrames.cs
- SizeAnimationClockResource.cs
- SurrogateEncoder.cs
- RSAProtectedConfigurationProvider.cs
- RenderDataDrawingContext.cs
- UserControlParser.cs
- XPathArrayIterator.cs
- IPEndPoint.cs
- ConsoleTraceListener.cs
- XmlComplianceUtil.cs
- PackageRelationship.cs
- TypographyProperties.cs
- SqlConnectionString.cs
- DebugHandleTracker.cs
- smtppermission.cs
- DetailsViewRowCollection.cs
- dataprotectionpermission.cs
- TimeSpanMinutesConverter.cs
- EntityUtil.cs
- DataSourceGeneratorException.cs
- EFColumnProvider.cs
- ArrayConverter.cs
- BitmapEffect.cs
- InheritedPropertyChangedEventArgs.cs
- TextTreeExtractElementUndoUnit.cs
- DbQueryCommandTree.cs
- OdbcConnectionStringbuilder.cs
- KnownColorTable.cs
- OleDbTransaction.cs
- OutOfProcStateClientManager.cs
- OutputCacheModule.cs
- Point3DIndependentAnimationStorage.cs
- SqlCacheDependency.cs
- HttpCapabilitiesSectionHandler.cs
- MulticastNotSupportedException.cs
- EntityKeyElement.cs
- counter.cs
- XmlUrlResolver.cs
- UIHelper.cs
- ToolStripTextBox.cs
- SqlVisitor.cs
- TextRange.cs
- hwndwrapper.cs
- ActivityValidator.cs
- QilTernary.cs
- WeakReferenceKey.cs
- NullNotAllowedCollection.cs
- DocumentCollection.cs