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
- ReachFixedPageSerializer.cs
- Attributes.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- X509CertificateCollection.cs
- MenuItem.cs
- DataGridBoolColumn.cs
- Fault.cs
- HwndProxyElementProvider.cs
- CorrelationToken.cs
- FlowNode.cs
- PriorityBinding.cs
- ExitEventArgs.cs
- ParseChildrenAsPropertiesAttribute.cs
- RegionData.cs
- FontWeightConverter.cs
- TabRenderer.cs
- PaginationProgressEventArgs.cs
- ImportFileRequest.cs
- ConfigXmlSignificantWhitespace.cs
- RegisteredScript.cs
- QilExpression.cs
- SingleKeyFrameCollection.cs
- SmiEventSink.cs
- NetCodeGroup.cs
- ConfigXmlElement.cs
- NameHandler.cs
- AnimatedTypeHelpers.cs
- ListBoxChrome.cs
- ClientSettingsSection.cs
- Int64AnimationUsingKeyFrames.cs
- FileVersionInfo.cs
- SharedPerformanceCounter.cs
- Schema.cs
- PrintPreviewDialog.cs
- OdbcRowUpdatingEvent.cs
- FixedSOMTableCell.cs
- SrgsDocumentParser.cs
- FixedSOMPageConstructor.cs
- AutomationPatternInfo.cs
- InvalidCastException.cs
- Icon.cs
- DbParameterCollectionHelper.cs
- SingleStorage.cs
- XmlSortKeyAccumulator.cs
- MediaTimeline.cs
- ResourceType.cs
- RoleGroup.cs
- ReadOnlyDictionary.cs
- AuthenticatedStream.cs
- CommandHelpers.cs
- Sentence.cs
- GridViewRowPresenter.cs
- PassportAuthentication.cs
- Asn1IntegerConverter.cs
- State.cs
- FileResponseElement.cs
- SqlDeflator.cs
- COM2ExtendedUITypeEditor.cs
- StreamReader.cs
- WebPartCatalogAddVerb.cs
- HandlerBase.cs
- TransactionState.cs
- ping.cs
- ImageAnimator.cs
- RawKeyboardInputReport.cs
- UInt64.cs
- M3DUtil.cs
- ValidationSummaryDesigner.cs
- InputMethodStateTypeInfo.cs
- DataControlFieldCell.cs
- ConnectionManager.cs
- PageParserFilter.cs
- GlyphRunDrawing.cs
- WasHostedComPlusFactory.cs
- HtmlInputHidden.cs
- PointAnimation.cs
- Bitmap.cs
- HttpWebRequestElement.cs
- InstanceCompleteException.cs
- MexServiceChannelBuilder.cs
- SynchronizationLockException.cs
- NameValueSectionHandler.cs
- DecimalFormatter.cs
- WebService.cs
- SerializationInfo.cs
- DataStreamFromComStream.cs
- XmlSequenceWriter.cs
- FunctionDefinition.cs
- XmlSerializableWriter.cs
- JoinTreeSlot.cs
- sqlinternaltransaction.cs
- LinqDataSourceContextEventArgs.cs
- ConfigurationErrorsException.cs
- BasicViewGenerator.cs
- TextParagraphProperties.cs
- CodeDomConfigurationHandler.cs
- ReadOnlyPropertyMetadata.cs
- ClientConfigPaths.cs
- MetabaseServerConfig.cs
- EventSinkActivity.cs