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
- CustomAssemblyResolver.cs
- SmiContext.cs
- ControlValuePropertyAttribute.cs
- PostBackOptions.cs
- PrintDialog.cs
- UniqueTransportManagerRegistration.cs
- HtmlGenericControl.cs
- LicenseManager.cs
- MSAAWinEventWrap.cs
- CollectionsUtil.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- Attachment.cs
- ResizeGrip.cs
- TextTreePropertyUndoUnit.cs
- XmlSchemaSequence.cs
- LateBoundChannelParameterCollection.cs
- AttributeCallbackBuilder.cs
- HtmlTextViewAdapter.cs
- DomainConstraint.cs
- ExpressionWriter.cs
- RightsManagementPermission.cs
- Privilege.cs
- ParameterModifier.cs
- HttpHeaderCollection.cs
- ping.cs
- DataGridViewColumnEventArgs.cs
- Label.cs
- SoundPlayerAction.cs
- CodeMemberMethod.cs
- FixedDSBuilder.cs
- DPTypeDescriptorContext.cs
- DataGridViewColumnHeaderCell.cs
- EditingScopeUndoUnit.cs
- CleanUpVirtualizedItemEventArgs.cs
- IndependentlyAnimatedPropertyMetadata.cs
- BuilderElements.cs
- EmptyWorkItem.cs
- TemplatedAdorner.cs
- ProfilePropertySettings.cs
- QueryMath.cs
- BlockCollection.cs
- EditorZoneBase.cs
- NavigationFailedEventArgs.cs
- ServiceHostingEnvironment.cs
- LocalizationCodeDomSerializer.cs
- TraceLevelStore.cs
- DynamicResourceExtension.cs
- ScriptingRoleServiceSection.cs
- GridViewColumnCollection.cs
- _emptywebproxy.cs
- HttpUnhandledOperationInvoker.cs
- RowToFieldTransformer.cs
- TransactionScope.cs
- SystemParameters.cs
- CharConverter.cs
- XmlSerializerFormatAttribute.cs
- GeneralEndpointIdentity.cs
- Transactions.cs
- VirtualPathUtility.cs
- EqualityComparer.cs
- DeclarationUpdate.cs
- QueryPageSettingsEventArgs.cs
- MonthCalendar.cs
- DataContractSet.cs
- SourceSwitch.cs
- HitTestDrawingContextWalker.cs
- ConfigurationValue.cs
- NumberSubstitution.cs
- IfAction.cs
- SqlTypeConverter.cs
- SqlUtils.cs
- Encoding.cs
- SQLMoney.cs
- SignerInfo.cs
- SqlProviderServices.cs
- Rect.cs
- KeyboardEventArgs.cs
- LayeredChannelListener.cs
- ZoomingMessageFilter.cs
- CssClassPropertyAttribute.cs
- EndpointConfigContainer.cs
- Bits.cs
- DbSetClause.cs
- CommandField.cs
- TableProviderWrapper.cs
- ObjectCache.cs
- BindingGroup.cs
- BaseCAMarshaler.cs
- WebControlToolBoxItem.cs
- DataPagerFieldCollection.cs
- Geometry.cs
- Token.cs
- DrawingImage.cs
- ResourceWriter.cs
- GPRECTF.cs
- ColumnWidthChangedEvent.cs
- AutoGeneratedFieldProperties.cs
- GridViewItemAutomationPeer.cs
- SizeConverter.cs
- WebPartConnectionsCancelEventArgs.cs