Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Security / FormsAuthenticationEventArgs.cs / 1305376 / 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. /// 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. /// 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
- OrderedHashRepartitionEnumerator.cs
- RankException.cs
- Decorator.cs
- NameTable.cs
- TabControlCancelEvent.cs
- MatchingStyle.cs
- ThreadNeutralSemaphore.cs
- InsufficientMemoryException.cs
- RenderOptions.cs
- PassportPrincipal.cs
- PerformanceCounterPermission.cs
- DataGridViewComboBoxEditingControl.cs
- cookiecollection.cs
- StoreAnnotationsMap.cs
- DataGridViewCellStyleEditor.cs
- CommandHelper.cs
- Soap12ProtocolReflector.cs
- SqlSelectClauseBuilder.cs
- ApplicationProxyInternal.cs
- ImageButton.cs
- SyndicationSerializer.cs
- SoapCommonClasses.cs
- ContractCodeDomInfo.cs
- SelectionRange.cs
- DefaultObjectMappingItemCollection.cs
- CommandDevice.cs
- handlecollector.cs
- DetailsViewInsertEventArgs.cs
- AttachedPropertyBrowsableAttribute.cs
- StructureChangedEventArgs.cs
- ClassHandlersStore.cs
- TreeNodeClickEventArgs.cs
- CodePageUtils.cs
- WindowsSecurityToken.cs
- DataGrid.cs
- EventDriven.cs
- DesignerCalendarAdapter.cs
- MinimizableAttributeTypeConverter.cs
- EventDriven.cs
- XmlSchemaAny.cs
- JournalEntryStack.cs
- QuestionEventArgs.cs
- ScrollBarAutomationPeer.cs
- FileDialog_Vista.cs
- DragEventArgs.cs
- HtmlTitle.cs
- WebProxyScriptElement.cs
- TextTreeObjectNode.cs
- ReflectionUtil.cs
- WebPartEditorApplyVerb.cs
- BitmapEffectInput.cs
- Material.cs
- MemberCollection.cs
- AutomationPatternInfo.cs
- XmlUtil.cs
- WindowsRichEditRange.cs
- ObjectDataSourceDisposingEventArgs.cs
- AttributedMetaModel.cs
- DataGridViewTopRowAccessibleObject.cs
- EventLogPermissionEntry.cs
- ImageCodecInfoPrivate.cs
- TypeSystem.cs
- PropertyConverter.cs
- WebMessageBodyStyleHelper.cs
- ToReply.cs
- ValidationSummary.cs
- DesignerTransaction.cs
- ProviderConnectionPoint.cs
- HttpsHostedTransportConfiguration.cs
- HostUtils.cs
- AutomationPropertyInfo.cs
- IncrementalCompileAnalyzer.cs
- ValidationHelpers.cs
- StorageMappingItemCollection.cs
- Int64KeyFrameCollection.cs
- DataKeyArray.cs
- WebControlsSection.cs
- GroupItemAutomationPeer.cs
- UserPreferenceChangingEventArgs.cs
- IFlowDocumentViewer.cs
- RecognizedAudio.cs
- PersonalizationStateInfoCollection.cs
- DefaultExpressionVisitor.cs
- SecurityHelper.cs
- ChangeProcessor.cs
- FtpCachePolicyElement.cs
- OdbcParameter.cs
- SerialErrors.cs
- DataObjectAttribute.cs
- BindUriHelper.cs
- ForwardPositionQuery.cs
- FatalException.cs
- HttpResponse.cs
- DoubleSumAggregationOperator.cs
- WizardSideBarListControlItem.cs
- RequestResizeEvent.cs
- RIPEMD160.cs
- EventPropertyMap.cs
- EdmConstants.cs
- UnknownMessageReceivedEventArgs.cs