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
- XmlSchemaSubstitutionGroup.cs
- ILGen.cs
- XmlCharacterData.cs
- BindStream.cs
- BufferedReadStream.cs
- ConfigurationStrings.cs
- WmlListAdapter.cs
- SoapSchemaMember.cs
- _NetworkingPerfCounters.cs
- KeyEventArgs.cs
- DelimitedListTraceListener.cs
- TextViewSelectionProcessor.cs
- ExpandCollapsePatternIdentifiers.cs
- GeneratedCodeAttribute.cs
- ActivationArguments.cs
- FontWeight.cs
- SizeChangedEventArgs.cs
- ListBoxItemAutomationPeer.cs
- CellParagraph.cs
- SpAudioStreamWrapper.cs
- ColumnPropertiesGroup.cs
- QuaternionAnimationUsingKeyFrames.cs
- XmlProcessingInstruction.cs
- DispatcherBuilder.cs
- SoapClientMessage.cs
- DateTimeFormatInfo.cs
- WeakReferenceList.cs
- ColorIndependentAnimationStorage.cs
- HttpValueCollection.cs
- CreateParams.cs
- RegistrySecurity.cs
- _CookieModule.cs
- RijndaelManaged.cs
- DataServiceHostFactory.cs
- HttpWebResponse.cs
- DocumentViewerAutomationPeer.cs
- SerializationAttributes.cs
- ProfileSection.cs
- TypedRowHandler.cs
- TextRangeSerialization.cs
- _LocalDataStore.cs
- SeparatorAutomationPeer.cs
- Vector3DCollectionConverter.cs
- XmlUtilWriter.cs
- EntityProviderServices.cs
- SQLStringStorage.cs
- WindowsFont.cs
- TableDesigner.cs
- Utils.cs
- XmlFormatReaderGenerator.cs
- NotificationContext.cs
- ProviderUtil.cs
- SynthesizerStateChangedEventArgs.cs
- IncrementalCompileAnalyzer.cs
- SQLRoleProvider.cs
- OleDbConnection.cs
- DataService.cs
- SocketElement.cs
- UrlAuthorizationModule.cs
- ToolboxItemAttribute.cs
- ObjectDataSource.cs
- WebServiceTypeData.cs
- OutOfProcStateClientManager.cs
- GroupStyle.cs
- WebPartAddingEventArgs.cs
- OutputCacheProfile.cs
- PermissionRequestEvidence.cs
- serverconfig.cs
- XmlLanguageConverter.cs
- SecurityChannelFactory.cs
- ConsumerConnectionPointCollection.cs
- WindowAutomationPeer.cs
- PublisherIdentityPermission.cs
- MinimizableAttributeTypeConverter.cs
- OutputCacheSection.cs
- RemotingException.cs
- FileUtil.cs
- DecoderFallback.cs
- ExpressionBuilderContext.cs
- _SpnDictionary.cs
- ErrorHandler.cs
- FixedMaxHeap.cs
- ConnectionOrientedTransportElement.cs
- GraphicsPathIterator.cs
- LineServices.cs
- InstanceValue.cs
- DbInsertCommandTree.cs
- QuaternionValueSerializer.cs
- UIElement3D.cs
- ExclusiveHandle.cs
- AssertFilter.cs
- CodeObjectCreateExpression.cs
- DiscoveryCallbackBehavior.cs
- JumpPath.cs
- TransactionInterop.cs
- SystemDropShadowChrome.cs
- CopyOnWriteList.cs
- KeyNotFoundException.cs
- AppDomainProtocolHandler.cs
- ReferencedType.cs