Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Security / WindowsAuthenticationEventArgs.cs / 1305376 / WindowsAuthenticationEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * WindowsAuthenticationEventArgs class * * Copyright (c) 1999 Microsoft Corporation */ namespace System.Web.Security { using System.Security.Principal; using System.Security.Permissions; ////// public sealed class WindowsAuthenticationEventArgs : EventArgs { private IPrincipal _User; private HttpContext _Context; private WindowsIdentity _Identity; ///The Windows authentication module raises this event. This /// is the event argument passed to the WindowsAuthentication_OnAuthenticate event. /// Contains a WindowsIdentity object and the IPrincipal object used for the context. ////// public IPrincipal User { get { return _User;} [SecurityPermission(SecurityAction.Demand, ControlPrincipal=true)] set { _User = value; } } ///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 WindowsAuthenticationModule will initialize /// Context.User with WindowsAuthenticationEventArgs.User. ////// The HttpContext intrinsic (provides access to /// Request, Response, and User objects). /// public HttpContext Context { get { return _Context;}} ////// An authenticated Windows identity. /// public WindowsIdentity Identity { get { return _Identity;}} ////// public WindowsAuthenticationEventArgs(WindowsIdentity identity, HttpContext context) { _Identity = identity; _Context = context; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Initializes a newly created instance of the /// WindowsAuthenticationEventArgs Class. ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * WindowsAuthenticationEventArgs class * * Copyright (c) 1999 Microsoft Corporation */ namespace System.Web.Security { using System.Security.Principal; using System.Security.Permissions; ////// public sealed class WindowsAuthenticationEventArgs : EventArgs { private IPrincipal _User; private HttpContext _Context; private WindowsIdentity _Identity; ///The Windows authentication module raises this event. This /// is the event argument passed to the WindowsAuthentication_OnAuthenticate event. /// Contains a WindowsIdentity object and the IPrincipal object used for the context. ////// public IPrincipal User { get { return _User;} [SecurityPermission(SecurityAction.Demand, ControlPrincipal=true)] set { _User = value; } } ///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 WindowsAuthenticationModule will initialize /// Context.User with WindowsAuthenticationEventArgs.User. ////// The HttpContext intrinsic (provides access to /// Request, Response, and User objects). /// public HttpContext Context { get { return _Context;}} ////// An authenticated Windows identity. /// public WindowsIdentity Identity { get { return _Identity;}} ////// public WindowsAuthenticationEventArgs(WindowsIdentity identity, HttpContext context) { _Identity = identity; _Context = context; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Initializes a newly created instance of the /// WindowsAuthenticationEventArgs Class. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ZipPackage.cs
- SystemIPAddressInformation.cs
- BehaviorEditorPart.cs
- SerializationStore.cs
- DataBindingCollectionConverter.cs
- StringValidatorAttribute.cs
- MdiWindowListItemConverter.cs
- LZCodec.cs
- RootAction.cs
- PenContexts.cs
- InputBinder.cs
- ConfigurationSettings.cs
- PhysicalAddress.cs
- XmlTextEncoder.cs
- DateTimeStorage.cs
- CheckBoxRenderer.cs
- FontEmbeddingManager.cs
- TextServicesLoader.cs
- BinaryFormatterWriter.cs
- ToolBarTray.cs
- WizardStepBase.cs
- ExpressionBinding.cs
- AudioFormatConverter.cs
- RtfToXamlLexer.cs
- JoinTreeNode.cs
- StandardBindingCollectionElement.cs
- Process.cs
- WorkflowMessageEventArgs.cs
- RepeatInfo.cs
- TemplatedWizardStep.cs
- contentDescriptor.cs
- RbTree.cs
- FontConverter.cs
- PolicyException.cs
- BuildTopDownAttribute.cs
- EntityConnection.cs
- DataGridRelationshipRow.cs
- XmlDataSourceNodeDescriptor.cs
- loginstatus.cs
- DeferredReference.cs
- SignatureDescription.cs
- FamilyCollection.cs
- StrokeNodeEnumerator.cs
- HttpHandlerAction.cs
- LongCountAggregationOperator.cs
- HierarchicalDataBoundControl.cs
- ProcessHostConfigUtils.cs
- System.Data.OracleClient_BID.cs
- SystemIPGlobalStatistics.cs
- HashSetEqualityComparer.cs
- ValidationEventArgs.cs
- ColorAnimationBase.cs
- SystemIcmpV6Statistics.cs
- AutomationPattern.cs
- HtmlTable.cs
- Int16Animation.cs
- WebRequestModuleElementCollection.cs
- DynamicDataResources.Designer.cs
- SignedXml.cs
- HMAC.cs
- PresentationSource.cs
- HtmlTableCell.cs
- Menu.cs
- ControlBuilder.cs
- HttpCapabilitiesBase.cs
- TextServicesPropertyRanges.cs
- DetailsViewModeEventArgs.cs
- UnescapedXmlDiagnosticData.cs
- PageCache.cs
- FixedPosition.cs
- DirectionalLight.cs
- propertyentry.cs
- SchemaImporter.cs
- PropertyMappingExceptionEventArgs.cs
- TextServicesProperty.cs
- PropertyCondition.cs
- MemberPath.cs
- SqlMultiplexer.cs
- DataSetFieldSchema.cs
- ExpressionBuilder.cs
- WrapPanel.cs
- StorageEntityContainerMapping.cs
- KoreanLunisolarCalendar.cs
- LineBreakRecord.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- CodeValidator.cs
- ToolStripContentPanel.cs
- NativeObjectSecurity.cs
- Region.cs
- OutputCacheSettings.cs
- DataGridViewImageColumn.cs
- ListCommandEventArgs.cs
- SharedDp.cs
- MemberHolder.cs
- ReachPrintTicketSerializer.cs
- itemelement.cs
- XamlPathDataSerializer.cs
- Enlistment.cs
- GrammarBuilderPhrase.cs
- EncoderParameter.cs