Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DataGridViewColumn.cs
- RuntimeArgumentHandle.cs
- XPathDocumentIterator.cs
- SqlBuilder.cs
- DynamicDocumentPaginator.cs
- ShellProvider.cs
- PackageStore.cs
- TaskFactory.cs
- SqlUnionizer.cs
- ZipIOModeEnforcingStream.cs
- Empty.cs
- GridViewSortEventArgs.cs
- UnitControl.cs
- InterleavedZipPartStream.cs
- BinaryCommonClasses.cs
- NotifyInputEventArgs.cs
- WebPartConnection.cs
- DependencySource.cs
- ExtensionQuery.cs
- MultiSelector.cs
- PropertyRecord.cs
- webbrowsersite.cs
- ReachNamespaceInfo.cs
- EllipseGeometry.cs
- ForwardPositionQuery.cs
- QilStrConcatenator.cs
- BezierSegment.cs
- DataPagerFieldCollection.cs
- XmlHierarchicalEnumerable.cs
- Padding.cs
- TerminatorSinks.cs
- DataControlFieldCell.cs
- GrammarBuilder.cs
- CustomLineCap.cs
- GenerateHelper.cs
- QilUnary.cs
- InputScope.cs
- InternalsVisibleToAttribute.cs
- BreakRecordTable.cs
- InputReferenceExpression.cs
- UnsafeNativeMethods.cs
- RightsManagementEncryptedStream.cs
- ResourcePool.cs
- SelectionHighlightInfo.cs
- ServiceDebugBehavior.cs
- XmlUTF8TextWriter.cs
- ReferenceEqualityComparer.cs
- CompilationUtil.cs
- LoadedOrUnloadedOperation.cs
- SqlDataReaderSmi.cs
- TimeoutHelper.cs
- ControlCollection.cs
- StringExpressionSet.cs
- X509AudioLogo.cs
- CodeEntryPointMethod.cs
- InternalConfigConfigurationFactory.cs
- PartialCachingAttribute.cs
- DoubleAnimationClockResource.cs
- BooleanKeyFrameCollection.cs
- PhoneCall.cs
- SecondaryIndex.cs
- Freezable.cs
- AlternateViewCollection.cs
- DataShape.cs
- InstanceCreationEditor.cs
- InputLanguageManager.cs
- ParallelRangeManager.cs
- CommunicationObjectFaultedException.cs
- BaseTemplateBuildProvider.cs
- _SSPIWrapper.cs
- UpdateEventArgs.cs
- TimeSpan.cs
- DetailsViewDeleteEventArgs.cs
- EventLogEntry.cs
- COM2Enum.cs
- ExpressionCopier.cs
- XDeferredAxisSource.cs
- CodeObject.cs
- DataServiceRequestException.cs
- CustomAttribute.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- XmlSerializer.cs
- CharAnimationUsingKeyFrames.cs
- XpsResource.cs
- ObjectSpanRewriter.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- StringWriter.cs
- CommandValueSerializer.cs
- ViewStateModeByIdAttribute.cs
- SafeHandle.cs
- BackStopAuthenticationModule.cs
- ListView.cs
- DocumentCollection.cs
- CodeStatementCollection.cs
- FacetEnabledSchemaElement.cs
- ArrayExtension.cs
- SubpageParagraph.cs
- PtsCache.cs
- DocComment.cs
- DefaultSettingsSection.cs