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
- PageThemeParser.cs
- SafeThreadHandle.cs
- FontNamesConverter.cs
- DynamicRendererThreadManager.cs
- RelatedImageListAttribute.cs
- httpstaticobjectscollection.cs
- SizeAnimationClockResource.cs
- MenuAutomationPeer.cs
- StylusButtonCollection.cs
- PhysicalOps.cs
- FontCollection.cs
- IRCollection.cs
- ProtectedProviderSettings.cs
- NaturalLanguageHyphenator.cs
- PeerResolverBindingElement.cs
- RowParagraph.cs
- GeneralTransform3DGroup.cs
- TaiwanLunisolarCalendar.cs
- BitmapEffect.cs
- MarkupExtensionParser.cs
- GregorianCalendar.cs
- AnimationTimeline.cs
- ElementNotAvailableException.cs
- StrongTypingException.cs
- MemoryRecordBuffer.cs
- InputScopeConverter.cs
- WindowsStatusBar.cs
- MasterPageParser.cs
- LiteralTextParser.cs
- DocumentViewerBase.cs
- WindowsButton.cs
- ControlParameter.cs
- PropertyEntry.cs
- HtmlControl.cs
- SQLDecimal.cs
- CultureTableRecord.cs
- EventProxy.cs
- QueuePropertyVariants.cs
- SignatureConfirmations.cs
- WindowsListBox.cs
- ObjectStateManager.cs
- NameValueFileSectionHandler.cs
- _OverlappedAsyncResult.cs
- VirtualDirectoryMapping.cs
- IisTraceWebEventProvider.cs
- Grant.cs
- WindowsRebar.cs
- ResourceDefaultValueAttribute.cs
- CompiledIdentityConstraint.cs
- CreateUserErrorEventArgs.cs
- EmptyWorkItem.cs
- PopupControlService.cs
- MatrixTransform3D.cs
- InternalBufferOverflowException.cs
- SmtpCommands.cs
- SafeFindHandle.cs
- RegexCompilationInfo.cs
- ADRoleFactoryConfiguration.cs
- HttpApplication.cs
- TreeNode.cs
- BackStopAuthenticationModule.cs
- XmlDataSourceView.cs
- FrameworkElementFactoryMarkupObject.cs
- Utils.cs
- DataBoundControlAdapter.cs
- DataSetSchema.cs
- RuleSettings.cs
- WorkflowInstanceQuery.cs
- ColorTransformHelper.cs
- WorkerRequest.cs
- ToolStripProgressBar.cs
- PlanCompiler.cs
- SecurityTokenSpecification.cs
- UnsafeNativeMethods.cs
- DesignerMetadata.cs
- TypeUsageBuilder.cs
- CalendarButtonAutomationPeer.cs
- ListViewInsertEventArgs.cs
- DataGridPagingPage.cs
- DataGridPagerStyle.cs
- XmlDocumentFieldSchema.cs
- RemotingConfigParser.cs
- WSDualHttpSecurityElement.cs
- QueuePathDialog.cs
- QilCloneVisitor.cs
- ToolboxItemSnapLineBehavior.cs
- BlurBitmapEffect.cs
- QueryMatcher.cs
- UserControl.cs
- HtmlTitle.cs
- SlotInfo.cs
- RadioButtonRenderer.cs
- NamedPermissionSet.cs
- CodeExporter.cs
- SpeechDetectedEventArgs.cs
- XmlSchemaSimpleTypeList.cs
- SmtpFailedRecipientsException.cs
- TreeView.cs
- GridViewCancelEditEventArgs.cs
- RedistVersionInfo.cs