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
- PackagePart.cs
- CredentialSelector.cs
- FilterableAttribute.cs
- NotSupportedException.cs
- RadioButtonBaseAdapter.cs
- MenuStrip.cs
- XmlAnyElementAttributes.cs
- ErrorTolerantObjectWriter.cs
- SystemIcons.cs
- TreeNodeMouseHoverEvent.cs
- AstTree.cs
- ItemContainerGenerator.cs
- PerfCounters.cs
- DesignerActionUIService.cs
- LocalBuilder.cs
- RequestTimeoutManager.cs
- CqlBlock.cs
- PriorityBinding.cs
- InkCanvasFeedbackAdorner.cs
- ColorPalette.cs
- TextTreePropertyUndoUnit.cs
- ServicePoint.cs
- updatecommandorderer.cs
- SiteMapNodeItemEventArgs.cs
- AnnotationObservableCollection.cs
- _DisconnectOverlappedAsyncResult.cs
- XamlSerializerUtil.cs
- HashRepartitionEnumerator.cs
- AlignmentXValidation.cs
- SolidBrush.cs
- StrokeNodeOperations2.cs
- SmtpFailedRecipientException.cs
- DurationConverter.cs
- BaseCodeDomTreeGenerator.cs
- EmptyStringExpandableObjectConverter.cs
- XmlReaderDelegator.cs
- StandardBindingReliableSessionElement.cs
- OdbcConnectionStringbuilder.cs
- PublisherIdentityPermission.cs
- MultiDataTrigger.cs
- AutomationElementCollection.cs
- XmlSerializerSection.cs
- PropertyOrder.cs
- DesignerRegionMouseEventArgs.cs
- AttributeUsageAttribute.cs
- IdentityValidationException.cs
- glyphs.cs
- TdsParameterSetter.cs
- AssemblyEvidenceFactory.cs
- SafeProcessHandle.cs
- LayoutManager.cs
- PrtTicket_Public_Simple.cs
- Restrictions.cs
- BitmapImage.cs
- CipherData.cs
- QuaternionIndependentAnimationStorage.cs
- RelatedPropertyManager.cs
- Geometry.cs
- MethodAccessException.cs
- sqlcontext.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- TextModifier.cs
- ObjectListDataBindEventArgs.cs
- InternalTransaction.cs
- Point3DCollectionValueSerializer.cs
- OrderedDictionaryStateHelper.cs
- WorkflowServiceHost.cs
- Translator.cs
- SqlRowUpdatedEvent.cs
- OneWayBindingElement.cs
- DataGridViewCellStyle.cs
- KeyGesture.cs
- DataObject.cs
- ZipPackage.cs
- NativeWindow.cs
- AdvancedBindingEditor.cs
- LabelExpression.cs
- TypeUsage.cs
- sortedlist.cs
- PolyLineSegment.cs
- HostedBindingBehavior.cs
- OutputWindow.cs
- BindingsSection.cs
- Operand.cs
- DataListAutoFormat.cs
- SecureConversationSecurityTokenParameters.cs
- HttpRequest.cs
- CaseInsensitiveComparer.cs
- TreeNodeEventArgs.cs
- EntityDesignPluralizationHandler.cs
- MarginCollapsingState.cs
- RenderContext.cs
- TextPenaltyModule.cs
- UnknownBitmapDecoder.cs
- ErrorInfoXmlDocument.cs
- UniqueIdentifierService.cs
- TransactionValidationBehavior.cs
- CompiledXpathExpr.cs
- GenericWebPart.cs
- XmlQueryType.cs