Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / Security / PassportAuthenticationEventArgs.cs / 1 / PassportAuthenticationEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * PassportAuthenticationEventArgs class * * Copyright (c) 1999 Microsoft Corporation */ namespace System.Web.Security { using System.Security.Principal; using System.Security.Permissions; ////// The /// event argument passed to the PassportAuthentication_OnAuthenticate event by the /// PassportAuthentication module. /// Since there is already an identity at this point, this is useful mainly /// for attaching a custom IPrincipal object to the context using the supplied /// identity. /// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class PassportAuthenticationEventArgs : EventArgs { private IPrincipal _User; private HttpContext _Context; private PassportIdentity _Identity; ////// IPrincipal /// object to be associated with the request. /// The user object should be attached to the context. If User is non null and Context.User is /// null, the PassportAuthenticationModule will initialize Context.User with /// PassportAuthenticationEventArgs.User. /// public IPrincipal User { get { return _User;} [SecurityPermission(SecurityAction.Demand, ControlPrincipal=true)] set { _User = value; } } ////// The /// HttpContext intrinsic - most notably provides access to Request, Response, and /// User objects. /// public HttpContext Context { get { return _Context;}} ////// An authenticated Passport identity. /// public PassportIdentity Identity { get { return _Identity;}} ////// Constructor /// public PassportAuthenticationEventArgs(PassportIdentity identity, HttpContext context) { _Identity = identity; _Context = context; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * PassportAuthenticationEventArgs class * * Copyright (c) 1999 Microsoft Corporation */ namespace System.Web.Security { using System.Security.Principal; using System.Security.Permissions; ////// The /// event argument passed to the PassportAuthentication_OnAuthenticate event by the /// PassportAuthentication module. /// Since there is already an identity at this point, this is useful mainly /// for attaching a custom IPrincipal object to the context using the supplied /// identity. /// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class PassportAuthenticationEventArgs : EventArgs { private IPrincipal _User; private HttpContext _Context; private PassportIdentity _Identity; ////// IPrincipal /// object to be associated with the request. /// The user object should be attached to the context. If User is non null and Context.User is /// null, the PassportAuthenticationModule will initialize Context.User with /// PassportAuthenticationEventArgs.User. /// public IPrincipal User { get { return _User;} [SecurityPermission(SecurityAction.Demand, ControlPrincipal=true)] set { _User = value; } } ////// The /// HttpContext intrinsic - most notably provides access to Request, Response, and /// User objects. /// public HttpContext Context { get { return _Context;}} ////// An authenticated Passport identity. /// public PassportIdentity Identity { get { return _Identity;}} ////// Constructor /// public PassportAuthenticationEventArgs(PassportIdentity identity, HttpContext context) { _Identity = identity; _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
- PipelineModuleStepContainer.cs
- Operand.cs
- BaseTypeViewSchema.cs
- HttpCookiesSection.cs
- MemoryStream.cs
- SafeMILHandle.cs
- TCPClient.cs
- ColumnResult.cs
- AppSettings.cs
- TypeResolver.cs
- BatchParser.cs
- ServiceTimeoutsElement.cs
- EditorZoneBase.cs
- CustomErrorCollection.cs
- TextCompositionEventArgs.cs
- QueryOperationResponseOfT.cs
- SecureEnvironment.cs
- OracleConnectionFactory.cs
- NullReferenceException.cs
- TracingConnectionListener.cs
- GeneralTransform.cs
- XmlCustomFormatter.cs
- XDRSchema.cs
- ScaleTransform3D.cs
- XmlSerializationReader.cs
- ControlBuilderAttribute.cs
- WindowsAuthenticationEventArgs.cs
- DesignerAutoFormatStyle.cs
- RegionIterator.cs
- GB18030Encoding.cs
- counter.cs
- AvTraceFormat.cs
- RelationshipEndCollection.cs
- DependencyObjectPropertyDescriptor.cs
- RectangleConverter.cs
- RequestResponse.cs
- RoleGroupCollection.cs
- FormViewAutoFormat.cs
- ConvertTextFrag.cs
- StyleXamlParser.cs
- ConcurrentStack.cs
- ObjectQueryState.cs
- TraceXPathNavigator.cs
- LinearGradientBrush.cs
- XslCompiledTransform.cs
- BaseContextMenu.cs
- ThicknessAnimation.cs
- ByteStreamMessageUtility.cs
- RSACryptoServiceProvider.cs
- BaseProcessor.cs
- _SSPISessionCache.cs
- ContainerUIElement3D.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- PriorityQueue.cs
- ActivityValidator.cs
- IntegerValidator.cs
- RenderDataDrawingContext.cs
- List.cs
- SchemaConstraints.cs
- SoapConverter.cs
- ContentPresenter.cs
- TextSelectionProcessor.cs
- WindowsSysHeader.cs
- RowType.cs
- NegatedCellConstant.cs
- CodeTypeMemberCollection.cs
- DetailsViewPagerRow.cs
- _emptywebproxy.cs
- ValueTable.cs
- FieldInfo.cs
- AffineTransform3D.cs
- BitStream.cs
- SqlTypesSchemaImporter.cs
- HttpHandlerActionCollection.cs
- LogConverter.cs
- PhysicalAddress.cs
- CqlIdentifiers.cs
- ListDictionaryInternal.cs
- SizeLimitedCache.cs
- HebrewCalendar.cs
- PasswordTextNavigator.cs
- SqlDependencyUtils.cs
- DbLambda.cs
- DropShadowBitmapEffect.cs
- NamespaceEmitter.cs
- DbDataReader.cs
- ParameterCollection.cs
- TagElement.cs
- RangeValuePattern.cs
- Math.cs
- DBCSCodePageEncoding.cs
- NotImplementedException.cs
- GroupLabel.cs
- DirectoryInfo.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- CompatibleComparer.cs
- StopStoryboard.cs
- InheritanceAttribute.cs
- RIPEMD160.cs
- SectionXmlInfo.cs