Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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;
///
/// 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.
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public sealed class WindowsAuthenticationEventArgs : EventArgs {
private IPrincipal _User;
private HttpContext _Context;
private WindowsIdentity _Identity;
///
/// 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.
///
public IPrincipal User {
get { return _User;}
[SecurityPermission(SecurityAction.Demand, ControlPrincipal=true)]
set {
_User = value;
}
}
///
/// 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;}}
///
/// Initializes a newly created instance of the
/// WindowsAuthenticationEventArgs Class.
///
public WindowsAuthenticationEventArgs(WindowsIdentity identity, HttpContext context) {
_Identity = identity;
_Context = context;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PerCallInstanceContextProvider.cs
- AstTree.cs
- LoginName.cs
- KeyedQueue.cs
- OrderedDictionary.cs
- XsdSchemaFileEditor.cs
- XmlAnyElementAttributes.cs
- Ref.cs
- CounterCreationDataCollection.cs
- EUCJPEncoding.cs
- DropShadowEffect.cs
- followingsibling.cs
- DbQueryCommandTree.cs
- Substitution.cs
- WorkerRequest.cs
- XmlNodeWriter.cs
- Dictionary.cs
- DbDataAdapter.cs
- ColorAnimation.cs
- X500Name.cs
- BamlVersionHeader.cs
- XPathNodeIterator.cs
- WebBrowserBase.cs
- RtfToXamlReader.cs
- WebBrowserNavigatedEventHandler.cs
- SettingsProperty.cs
- EntityContainerEmitter.cs
- DynamicArgumentDesigner.xaml.cs
- ComMethodElementCollection.cs
- OleDbEnumerator.cs
- InheritanceRules.cs
- CommandEventArgs.cs
- listitem.cs
- SizeKeyFrameCollection.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- AncestorChangedEventArgs.cs
- AnimationLayer.cs
- SizeAnimationClockResource.cs
- SystemTcpStatistics.cs
- GetPageNumberCompletedEventArgs.cs
- BitmapSourceSafeMILHandle.cs
- HtmlInputSubmit.cs
- CodeGenerator.cs
- BuildProvidersCompiler.cs
- PropertyExpression.cs
- ImageInfo.cs
- ExpressionList.cs
- ParallelTimeline.cs
- ErasingStroke.cs
- HMAC.cs
- ArgumentOutOfRangeException.cs
- ToolboxItemFilterAttribute.cs
- ToolStripSettings.cs
- MasterPageBuildProvider.cs
- ValidatingReaderNodeData.cs
- SafeMarshalContext.cs
- SortedSet.cs
- EnumerableCollectionView.cs
- InputScopeNameConverter.cs
- HttpWebResponse.cs
- MemberRestriction.cs
- EventLogPermission.cs
- UriExt.cs
- DefaultTraceListener.cs
- ScrollChrome.cs
- SizeKeyFrameCollection.cs
- DesignerVerb.cs
- NumericUpDown.cs
- WriteTimeStream.cs
- TextEditor.cs
- RequestQueryProcessor.cs
- ArraySubsetEnumerator.cs
- ModulesEntry.cs
- HorizontalAlignConverter.cs
- XmlBindingWorker.cs
- DiagnosticTraceSource.cs
- TextEmbeddedObject.cs
- DesignTimeTemplateParser.cs
- GridEntryCollection.cs
- Image.cs
- PseudoWebRequest.cs
- XmlRootAttribute.cs
- ErrorWrapper.cs
- OrderedDictionary.cs
- PathFigureCollectionConverter.cs
- ParameterBuilder.cs
- SymmetricSecurityBindingElement.cs
- ContractInstanceProvider.cs
- WorkflowView.cs
- TextFormatter.cs
- MarkupCompilePass1.cs
- SiteMapNode.cs
- RsaKeyIdentifierClause.cs
- TextRunCacheImp.cs
- DoubleLink.cs
- EUCJPEncoding.cs
- WrappingXamlSchemaContext.cs
- ModuleConfigurationInfo.cs
- PlainXmlWriter.cs
- FormatStringEditor.cs