Code:
/ FX-1434 / FX-1434 / 1.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
- CommonDialog.cs
- BaseHashHelper.cs
- MimeParameters.cs
- RowBinding.cs
- XmlSignatureManifest.cs
- Context.cs
- AggregateException.cs
- Trace.cs
- QueueTransferProtocol.cs
- FolderNameEditor.cs
- ClientViaElement.cs
- Vector3DCollection.cs
- ClientApiGenerator.cs
- SvcMapFileLoader.cs
- ContentControl.cs
- SortKey.cs
- GuidTagList.cs
- PassportIdentity.cs
- WeakEventTable.cs
- ListBox.cs
- TreeView.cs
- PageAsyncTask.cs
- IDataContractSurrogate.cs
- CheckBoxField.cs
- CapabilitiesRule.cs
- FastEncoderWindow.cs
- TextureBrush.cs
- UnauthorizedWebPart.cs
- BitStream.cs
- CompileXomlTask.cs
- MonthCalendar.cs
- PropertyItemInternal.cs
- VisualBasic.cs
- ArgumentException.cs
- SqlBinder.cs
- TreeNodeStyleCollection.cs
- HwndProxyElementProvider.cs
- SubpageParaClient.cs
- AttributeCollection.cs
- SqlFactory.cs
- Separator.cs
- ListDesigner.cs
- PopOutPanel.cs
- LookupNode.cs
- EntityClassGenerator.cs
- WebUtil.cs
- PolygonHotSpot.cs
- EnvironmentPermission.cs
- GeneralTransform.cs
- ReadOnlyCollection.cs
- DateTimeConverter.cs
- AssemblyHash.cs
- PropertyTabChangedEvent.cs
- SqlClientPermission.cs
- EmptyEnumerable.cs
- PlatformNotSupportedException.cs
- JoinGraph.cs
- DataGridViewColumnStateChangedEventArgs.cs
- UidManager.cs
- CoTaskMemHandle.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- FormClosedEvent.cs
- EventMetadata.cs
- IxmlLineInfo.cs
- ApplicationSecurityManager.cs
- CodeGenerator.cs
- ObjectTag.cs
- ProtectedConfigurationProviderCollection.cs
- EntitySqlQueryCacheEntry.cs
- Int32Rect.cs
- formatter.cs
- PointAnimationUsingKeyFrames.cs
- WebPartTransformer.cs
- unsafeIndexingFilterStream.cs
- DataServiceQuery.cs
- AuthenticationService.cs
- RepeaterItemCollection.cs
- ExtractCollection.cs
- StreamInfo.cs
- IPipelineRuntime.cs
- ColorMap.cs
- BackgroundWorker.cs
- ExpressionWriter.cs
- HandlerFactoryWrapper.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- UidManager.cs
- NumericUpDown.cs
- ConfigXmlDocument.cs
- MimeReflector.cs
- Tuple.cs
- WebHttpElement.cs
- MgmtConfigurationRecord.cs
- XPathMessageFilterElement.cs
- AffineTransform3D.cs
- __Filters.cs
- ScriptControlManager.cs
- BufferedGenericXmlSecurityToken.cs
- MsmqIntegrationBindingCollectionElement.cs
- DBSqlParserTable.cs
- SecurityVerifiedMessage.cs