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
- LinqExpressionNormalizer.cs
- HotSpot.cs
- XamlClipboardData.cs
- ConditionBrowserDialog.cs
- SrgsRuleRef.cs
- QueueSurrogate.cs
- SqlBuilder.cs
- GridViewRowCollection.cs
- TextBoxBase.cs
- Matrix3DConverter.cs
- ModelItemCollection.cs
- ArraySet.cs
- SortDescriptionCollection.cs
- VarRefManager.cs
- BindingWorker.cs
- RsaSecurityTokenAuthenticator.cs
- xmlglyphRunInfo.cs
- DesignerProperties.cs
- AsyncPostBackErrorEventArgs.cs
- SafeEventLogReadHandle.cs
- ScaleTransform3D.cs
- HTTPNotFoundHandler.cs
- CodeArrayIndexerExpression.cs
- ContextDataSourceContextData.cs
- PerformanceCounterLib.cs
- EmptyEnumerator.cs
- TextTreeTextNode.cs
- Resources.Designer.cs
- LazyTextWriterCreator.cs
- UnsafeNativeMethods.cs
- MemoryRecordBuffer.cs
- EntityContainerRelationshipSetEnd.cs
- StateDesignerConnector.cs
- DynamicMetaObject.cs
- StringAnimationUsingKeyFrames.cs
- InputLanguage.cs
- StringValidator.cs
- PageCache.cs
- SequenceDesigner.cs
- ResourcePermissionBase.cs
- SqlBooleanMismatchVisitor.cs
- ActivityDesignerResources.cs
- PresentationAppDomainManager.cs
- AnonymousIdentificationModule.cs
- MetadataPropertyAttribute.cs
- RegistrationServices.cs
- XmlSignificantWhitespace.cs
- SelectionEditor.cs
- ListViewItemSelectionChangedEvent.cs
- Separator.cs
- XmlIncludeAttribute.cs
- SqlDataSourceSelectingEventArgs.cs
- FieldTemplateUserControl.cs
- TextBlock.cs
- DataGridViewColumnTypePicker.cs
- IWorkflowDebuggerService.cs
- PathData.cs
- CodeExpressionCollection.cs
- Command.cs
- StringArrayConverter.cs
- PreviewKeyDownEventArgs.cs
- OdbcStatementHandle.cs
- NotifyCollectionChangedEventArgs.cs
- PeerDuplexChannel.cs
- DBCommand.cs
- GroupBoxRenderer.cs
- ParameterCollection.cs
- CustomErrorsSectionWrapper.cs
- ValidationEventArgs.cs
- MaskedTextBoxDesignerActionList.cs
- MultiAsyncResult.cs
- UserControlParser.cs
- Update.cs
- LiteralControl.cs
- XsdBuildProvider.cs
- CharEntityEncoderFallback.cs
- backend.cs
- SimpleHandlerFactory.cs
- MetadataItem.cs
- Control.cs
- FocusManager.cs
- DataContractAttribute.cs
- BamlTreeNode.cs
- Underline.cs
- GroupAggregateExpr.cs
- SmtpTransport.cs
- DesigntimeLicenseContext.cs
- DockPatternIdentifiers.cs
- Image.cs
- ManifestResourceInfo.cs
- MissingMethodException.cs
- LogicalExpr.cs
- RelOps.cs
- ElementAction.cs
- DataControlButton.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- ProtectedConfigurationSection.cs
- Duration.cs
- WeakRefEnumerator.cs
- MetadataArtifactLoaderFile.cs