Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Security / WindowsAuthenticationEventArgs.cs / 1 / 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; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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; } } }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
- ApplicationInfo.cs
- GeneralTransform.cs
- DefaultAssemblyResolver.cs
- DbResourceAllocator.cs
- LockedHandleGlyph.cs
- FontNamesConverter.cs
- FontStyles.cs
- DesignerTextBoxAdapter.cs
- DocumentGridPage.cs
- DesignTimeData.cs
- SHA256.cs
- SecurityElement.cs
- SerialErrors.cs
- DataTransferEventArgs.cs
- StrokeDescriptor.cs
- GenericWebPart.cs
- IPAddress.cs
- Double.cs
- DoubleAnimation.cs
- TextEditorTyping.cs
- InlineUIContainer.cs
- GeometryDrawing.cs
- GenericTextProperties.cs
- _SecureChannel.cs
- QuadraticBezierSegment.cs
- ServiceDesigner.cs
- FixedSOMTextRun.cs
- XmlUTF8TextReader.cs
- ServiceMetadataContractBehavior.cs
- SeparatorAutomationPeer.cs
- StatusBarItemAutomationPeer.cs
- Point4DConverter.cs
- ProcessHostFactoryHelper.cs
- BuildProvider.cs
- DataMisalignedException.cs
- RegexInterpreter.cs
- SqlTypeConverter.cs
- DBBindings.cs
- ZipPackagePart.cs
- HandlerBase.cs
- MatrixAnimationUsingKeyFrames.cs
- ReadOnlyAttribute.cs
- FrameworkObject.cs
- CryptoKeySecurity.cs
- RepeaterItemEventArgs.cs
- TableColumnCollection.cs
- HttpContextServiceHost.cs
- TreeView.cs
- SR.cs
- PasswordBox.cs
- CacheAxisQuery.cs
- StrongName.cs
- PictureBoxDesigner.cs
- SqlDataSourceQueryEditor.cs
- ProxyWebPart.cs
- DataGridCommandEventArgs.cs
- DescriptionAttribute.cs
- WindowsFormsSectionHandler.cs
- SystemInfo.cs
- WindowsStatic.cs
- Deflater.cs
- SystemIPInterfaceProperties.cs
- OdbcException.cs
- DocumentationServerProtocol.cs
- DataGridAddNewRow.cs
- RequestQueryProcessor.cs
- prompt.cs
- ClientBuildManagerCallback.cs
- ModifiableIteratorCollection.cs
- ComponentEditorPage.cs
- UpdatePanel.cs
- CodeThrowExceptionStatement.cs
- KnownTypesHelper.cs
- RequestSecurityTokenResponse.cs
- ProxyElement.cs
- MailBnfHelper.cs
- ObjectComplexPropertyMapping.cs
- TableLayoutStyle.cs
- SparseMemoryStream.cs
- TabControl.cs
- cookie.cs
- DebuggerAttributes.cs
- NativeMethods.cs
- MultiByteCodec.cs
- PlanCompilerUtil.cs
- HttpWebRequest.cs
- Pointer.cs
- X509CertificateInitiatorServiceCredential.cs
- ZipIOBlockManager.cs
- ColorTransform.cs
- SiteMapPath.cs
- TypedOperationInfo.cs
- CreateUserWizardStep.cs
- Rotation3DAnimation.cs
- UrlUtility.cs
- Point3D.cs
- AutomationIdentifier.cs
- HashAlgorithm.cs
- BrowsableAttribute.cs
- ObjectListDesigner.cs