Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Security / PassportAuthenticationEventArgs.cs / 1305376 / 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. /// [Obsolete("This type is obsolete. The Passport authentication product is no longer supported and has been superseded by Live ID.")] 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. /// [Obsolete("This type is obsolete. The Passport authentication product is no longer supported and has been superseded by Live ID.")] 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
- ApplicationSettingsBase.cs
- Vector3D.cs
- ImportCatalogPart.cs
- SqlExpander.cs
- WhitespaceRuleLookup.cs
- ScrollItemPattern.cs
- SharedRuntimeState.cs
- WindowsRichEditRange.cs
- xmlglyphRunInfo.cs
- BaseParser.cs
- PipelineModuleStepContainer.cs
- RegionIterator.cs
- X509UI.cs
- QilVisitor.cs
- ParameterBuilder.cs
- UriGenerator.cs
- SystemDiagnosticsSection.cs
- ApplyHostConfigurationBehavior.cs
- MultipartContentParser.cs
- PersonalizationState.cs
- PenThreadWorker.cs
- RectangleGeometry.cs
- SmiEventStream.cs
- DataError.cs
- ProcessHostConfigUtils.cs
- ResourceReader.cs
- DataControlLinkButton.cs
- DynamicArgumentDialog.cs
- GetReadStreamResult.cs
- DataGridItemEventArgs.cs
- TriggerBase.cs
- SmiMetaDataProperty.cs
- TemplateField.cs
- StreamInfo.cs
- AttachmentCollection.cs
- ListViewGroupCollectionEditor.cs
- MimeMapping.cs
- Helper.cs
- PropertyChangedEventArgs.cs
- ArrangedElement.cs
- BamlCollectionHolder.cs
- RangeValueProviderWrapper.cs
- UITypeEditor.cs
- AstNode.cs
- MouseGestureConverter.cs
- Item.cs
- BuildManager.cs
- WebServiceEnumData.cs
- RuleSetDialog.cs
- SerializationStore.cs
- CodeNamespace.cs
- NameSpaceExtractor.cs
- IConvertible.cs
- TerminateSequence.cs
- ParameterReplacerVisitor.cs
- CodeDelegateInvokeExpression.cs
- CodeDelegateCreateExpression.cs
- SelectingProviderEventArgs.cs
- EntityTemplateFactory.cs
- ToolStripStatusLabel.cs
- VisualTreeHelper.cs
- SoapReflectionImporter.cs
- PropertyGeneratedEventArgs.cs
- AnchoredBlock.cs
- EdmItemError.cs
- ImageInfo.cs
- SchemaManager.cs
- ScrollBarRenderer.cs
- ManagementEventArgs.cs
- MethodBuilderInstantiation.cs
- IdentityReference.cs
- _Win32.cs
- Documentation.cs
- MsmqIntegrationBindingElement.cs
- SubstitutionResponseElement.cs
- LinkedList.cs
- DrawingServices.cs
- Identity.cs
- log.cs
- ZipIOLocalFileBlock.cs
- CannotUnloadAppDomainException.cs
- SignedXml.cs
- DrawingAttributes.cs
- OpCodes.cs
- PipelineModuleStepContainer.cs
- EntityViewGenerationAttribute.cs
- ExceptionWrapper.cs
- XPathException.cs
- RegexMatchCollection.cs
- ByteKeyFrameCollection.cs
- LogSwitch.cs
- WindowsImpersonationContext.cs
- ZipPackage.cs
- AlphaSortedEnumConverter.cs
- Int64Converter.cs
- CaseInsensitiveHashCodeProvider.cs
- DependencyPropertyHelper.cs
- SafeHandles.cs
- FormViewDeletedEventArgs.cs
- WindowProviderWrapper.cs