Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / Security / FormsAuthenticationEventArgs.cs / 1 / FormsAuthenticationEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * FormsAuthenticationEventArgs class * * Copyright (c) 1999 Microsoft Corporation */ namespace System.Web.Security { using System.Security.Principal; using System.Security.Permissions; ////// The /// event argument passed to the FormsAuthentication_OnAuthenticate event. Contains a FormsIdentity object and the /// IPrincipal object used for the context. /// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class FormsAuthenticationEventArgs : EventArgs { private IPrincipal _User; private HttpContext _Context; ////// public IPrincipal User { get { return _User;} [SecurityPermission(SecurityAction.Demand, ControlPrincipal=true)] set { _User = value; } } ///The /// IPrincipal object to be associated with the request. /// ////// This is the HttpContext intrinsic - most /// notably provides access to Request, Response, and User objects. /// public HttpContext Context { get { return _Context;}} ////// Constructor /// public FormsAuthenticationEventArgs(HttpContext context) { _Context = context; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * FormsAuthenticationEventArgs class * * Copyright (c) 1999 Microsoft Corporation */ namespace System.Web.Security { using System.Security.Principal; using System.Security.Permissions; ////// The /// event argument passed to the FormsAuthentication_OnAuthenticate event. Contains a FormsIdentity object and the /// IPrincipal object used for the context. /// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class FormsAuthenticationEventArgs : EventArgs { private IPrincipal _User; private HttpContext _Context; ////// public IPrincipal User { get { return _User;} [SecurityPermission(SecurityAction.Demand, ControlPrincipal=true)] set { _User = value; } } ///The /// IPrincipal object to be associated with the request. /// ////// This is the HttpContext intrinsic - most /// notably provides access to Request, Response, and User objects. /// public HttpContext Context { get { return _Context;}} ////// Constructor /// public FormsAuthenticationEventArgs(HttpContext context) { _Context = context; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AssemblyAttributesGoHere.cs
- ReflectionServiceProvider.cs
- Permission.cs
- RegexTypeEditor.cs
- ResourceExpressionBuilder.cs
- DecimalStorage.cs
- Table.cs
- SimpleWorkerRequest.cs
- NullableDecimalAverageAggregationOperator.cs
- XmlAnyElementAttributes.cs
- XPathNodeList.cs
- ImageListDesigner.cs
- OdbcConnection.cs
- QueryCursorEventArgs.cs
- SchemaImporterExtensionsSection.cs
- SQLByteStorage.cs
- CompositeFontParser.cs
- ExpressionBindingCollection.cs
- NumberFormatter.cs
- UInt32.cs
- CultureInfoConverter.cs
- SymbolType.cs
- EncodingTable.cs
- StyleHelper.cs
- DataBindEngine.cs
- RegistryConfigurationProvider.cs
- grammarelement.cs
- NativeRecognizer.cs
- OracleInfoMessageEventArgs.cs
- TextRenderingModeValidation.cs
- XPathDocumentBuilder.cs
- UnorderedHashRepartitionStream.cs
- SafeTimerHandle.cs
- PolyLineSegmentFigureLogic.cs
- FileLevelControlBuilderAttribute.cs
- LexicalChunk.cs
- GenericUriParser.cs
- DataContext.cs
- ProcessHostConfigUtils.cs
- _DisconnectOverlappedAsyncResult.cs
- SizeAnimation.cs
- ErrorRuntimeConfig.cs
- IconHelper.cs
- WebProxyScriptElement.cs
- HtmlAnchor.cs
- _WinHttpWebProxyDataBuilder.cs
- Predicate.cs
- PointAnimation.cs
- Crc32.cs
- Win32.cs
- MasterPage.cs
- BrowserDefinition.cs
- WebPartCatalogAddVerb.cs
- RowUpdatingEventArgs.cs
- FrameworkElementFactoryMarkupObject.cs
- MemberPath.cs
- FileRegion.cs
- ProfilePropertySettings.cs
- SignatureResourceHelper.cs
- DbConnectionPoolIdentity.cs
- TypedTableBase.cs
- LocalizationComments.cs
- EpmContentSerializerBase.cs
- GenericIdentity.cs
- DataColumnMapping.cs
- MenuItemBindingCollection.cs
- ColorTransformHelper.cs
- FaultHandlingFilter.cs
- ThreadPool.cs
- SqlDataSourceParameterParser.cs
- ListView.cs
- DSASignatureDeformatter.cs
- DetailsViewRow.cs
- ToolStripPanelRenderEventArgs.cs
- ByteKeyFrameCollection.cs
- FragmentNavigationEventArgs.cs
- IdentityReference.cs
- UserControlDocumentDesigner.cs
- SamlAuthenticationStatement.cs
- TemplatePropertyEntry.cs
- LocalizedNameDescriptionPair.cs
- HMAC.cs
- CellTreeNode.cs
- Compiler.cs
- Trace.cs
- RTLAwareMessageBox.cs
- InvalidCastException.cs
- GeometryCombineModeValidation.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- CodeDOMUtility.cs
- GroupBoxRenderer.cs
- SqlDataAdapter.cs
- TreeNode.cs
- IssuedSecurityTokenParameters.cs
- ExpressionQuoter.cs
- ToolStripSplitButton.cs
- XmlDictionary.cs
- Scalars.cs
- BaseAddressElement.cs
- CryptoProvider.cs