Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / Security / FormsIdentity.cs / 1 / FormsIdentity.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * FormsIdentity * * Copyright (c) 1999 Microsoft Corporation */ namespace System.Web.Security { using System.Security.Principal; using System.Security.Permissions; ////// This class is an IIdentity derived class /// used by FormsAuthenticationModule. It provides a way for an application to /// access the cookie authentication ticket. /// [Serializable] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class FormsIdentity : IIdentity { ////// The name of the identity (in this case, the /// passport user name). /// public String Name { get { return _Ticket.Name;}} ////// The type of the identity (in this case, /// "Forms"). /// public String AuthenticationType { get { return "Forms";}} ////// Indicates whether or not authentication took /// place. /// public bool IsAuthenticated { get { return true;}} ////// Returns the FormsAuthenticationTicket /// associated with the current request. /// public FormsAuthenticationTicket Ticket { get { return _Ticket;}} ////// Constructor. /// public FormsIdentity (FormsAuthenticationTicket ticket) { _Ticket = ticket; } private FormsAuthenticationTicket _Ticket; } } // 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
- Rotation3D.cs
- OAVariantLib.cs
- DataGridViewBand.cs
- CssTextWriter.cs
- ClientFormsAuthenticationCredentials.cs
- PolicyImporterElement.cs
- DesignerSerializerAttribute.cs
- CalendarDateRangeChangingEventArgs.cs
- FixedPage.cs
- DataGridViewRowEventArgs.cs
- HostingEnvironment.cs
- CodeCompiler.cs
- ErrorReporting.cs
- HeaderedItemsControl.cs
- CopyNodeSetAction.cs
- HostVisual.cs
- _emptywebproxy.cs
- Margins.cs
- QilLiteral.cs
- VirtualPathProvider.cs
- CompiledQueryCacheKey.cs
- DeclarativeCatalogPart.cs
- _ListenerResponseStream.cs
- CornerRadiusConverter.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- HttpConfigurationSystem.cs
- PerspectiveCamera.cs
- CoTaskMemSafeHandle.cs
- Table.cs
- XamlFilter.cs
- Tuple.cs
- DbProviderFactory.cs
- WorkflowPageSetupDialog.cs
- FrameworkContentElement.cs
- ProxySimple.cs
- BitmapPalettes.cs
- PreviewControlDesigner.cs
- Mapping.cs
- MarshalByValueComponent.cs
- AttachInfo.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- ZoneLinkButton.cs
- CodeMethodMap.cs
- TransformValueSerializer.cs
- AnalyzedTree.cs
- SByteConverter.cs
- SortKey.cs
- Rethrow.cs
- PasswordRecovery.cs
- ContentPosition.cs
- ILGen.cs
- DiffuseMaterial.cs
- ClientScriptManager.cs
- EventSchemaTraceListener.cs
- DataObjectEventArgs.cs
- DependentList.cs
- XmlMemberMapping.cs
- RegexRunnerFactory.cs
- CallbackValidator.cs
- EdmError.cs
- ContainerVisual.cs
- Timer.cs
- XdrBuilder.cs
- ToolStripItemClickedEventArgs.cs
- SatelliteContractVersionAttribute.cs
- DeferredTextReference.cs
- _AuthenticationState.cs
- ClipboardProcessor.cs
- RegexCompilationInfo.cs
- TiffBitmapDecoder.cs
- RtType.cs
- FormsAuthenticationEventArgs.cs
- BufferModeSettings.cs
- TypeLibConverter.cs
- PolicyManager.cs
- EntityContainerEntitySet.cs
- SettingsAttributes.cs
- ToolboxItem.cs
- SystemUdpStatistics.cs
- DetailsView.cs
- COM2ICategorizePropertiesHandler.cs
- ConnectionProviderAttribute.cs
- SimpleExpression.cs
- EdmPropertyAttribute.cs
- WindowsRegion.cs
- OciLobLocator.cs
- NetCodeGroup.cs
- DataSourceCache.cs
- NameValuePair.cs
- TemplateXamlParser.cs
- ContentOperations.cs
- sqlstateclientmanager.cs
- MsmqBindingElementBase.cs
- DetailsViewCommandEventArgs.cs
- ProcessHostConfigUtils.cs
- QilGenerator.cs
- EqualityComparer.cs
- EpmContentSerializer.cs
- ResizeBehavior.cs
- SQLInt16Storage.cs