Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Security / FormsIdentity.cs / 1305376 / 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] public 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) { if (ticket == null) throw new ArgumentNullException("ticket"); _Ticket = ticket; } private FormsAuthenticationTicket _Ticket; } } // 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
- ImageSource.cs
- PageParserFilter.cs
- ObjectViewFactory.cs
- DBSchemaRow.cs
- RemoteWebConfigurationHost.cs
- KnownTypesProvider.cs
- InlineCollection.cs
- PolyBezierSegment.cs
- OleDbTransaction.cs
- ListManagerBindingsCollection.cs
- ObjectDataSourceDisposingEventArgs.cs
- OrthographicCamera.cs
- Avt.cs
- DrawItemEvent.cs
- CapabilitiesRule.cs
- IRCollection.cs
- SingleTagSectionHandler.cs
- HashSetDebugView.cs
- ToolStripCodeDomSerializer.cs
- ConnectionManagementElementCollection.cs
- UserControl.cs
- DataGridViewColumnStateChangedEventArgs.cs
- DescendantOverDescendantQuery.cs
- DataObjectEventArgs.cs
- CompressionTracing.cs
- Vector3DAnimation.cs
- MulticastDelegate.cs
- SerializationSectionGroup.cs
- HtmlGenericControl.cs
- TextEditorMouse.cs
- BuildResultCache.cs
- ImageMap.cs
- ObjectToIdCache.cs
- sqlser.cs
- WebPartExportVerb.cs
- ProxyGenerationError.cs
- ManifestBasedResourceGroveler.cs
- Tracer.cs
- RepeatInfo.cs
- DependencyObjectType.cs
- WindowsRegion.cs
- ExpandedProjectionNode.cs
- TerminatorSinks.cs
- CancellationScope.cs
- UIAgentMonitor.cs
- HandledEventArgs.cs
- StandardToolWindows.cs
- SchemaNamespaceManager.cs
- FeatureManager.cs
- DeploymentExceptionMapper.cs
- SchemaNamespaceManager.cs
- AddInServer.cs
- WebPartCatalogCloseVerb.cs
- FastEncoder.cs
- ExtractCollection.cs
- Clock.cs
- NamespaceDecl.cs
- XmlQueryTypeFactory.cs
- TypedTableBase.cs
- OperationAbortedException.cs
- IdentityNotMappedException.cs
- PrintDocument.cs
- UserInitiatedNavigationPermission.cs
- PropertyDescriptorCollection.cs
- MatchAttribute.cs
- OneOf.cs
- QilFunction.cs
- PointLightBase.cs
- ListBindingHelper.cs
- NgenServicingAttributes.cs
- DecryptRequest.cs
- TreeViewItemAutomationPeer.cs
- DoubleLinkListEnumerator.cs
- OdbcDataReader.cs
- TypeConverter.cs
- VisualBasicSettingsConverter.cs
- WebPartHelpVerb.cs
- SeekStoryboard.cs
- ListViewUpdatedEventArgs.cs
- CompilerHelpers.cs
- XmlSchemaSequence.cs
- WmfPlaceableFileHeader.cs
- RpcCryptoRequest.cs
- ListArgumentProvider.cs
- Int32Rect.cs
- MdImport.cs
- DefaultDiscoveryService.cs
- HtmlTableRow.cs
- Effect.cs
- CacheSection.cs
- Int32Storage.cs
- ConfigurationPropertyAttribute.cs
- IconConverter.cs
- Vector3DConverter.cs
- BuildProviderCollection.cs
- ReplyChannel.cs
- AssemblyResourceLoader.cs
- Int64Storage.cs
- LineGeometry.cs
- StorageConditionPropertyMapping.cs