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
- UnmanagedMemoryStream.cs
- WindowsFont.cs
- DbConnectionPoolCounters.cs
- Timer.cs
- XPathNodeIterator.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- SourceFileBuildProvider.cs
- Style.cs
- TextSelectionProcessor.cs
- Activation.cs
- RegexMatch.cs
- WebEvents.cs
- ProxyGenerationError.cs
- PeerToPeerException.cs
- ImportCatalogPart.cs
- FreezableOperations.cs
- ColorConverter.cs
- TextEditorLists.cs
- TargetParameterCountException.cs
- DbDataAdapter.cs
- ImmComposition.cs
- Parser.cs
- ProtocolsConfigurationEntry.cs
- IdentityValidationException.cs
- TableLayoutColumnStyleCollection.cs
- IDispatchConstantAttribute.cs
- SingleAnimation.cs
- StringComparer.cs
- NetCodeGroup.cs
- MethodExpr.cs
- AttributeProviderAttribute.cs
- ColumnClickEvent.cs
- XPathConvert.cs
- ApplicationDirectory.cs
- SQLBytes.cs
- WindowVisualStateTracker.cs
- CompositeControlDesigner.cs
- MemberInfoSerializationHolder.cs
- JournalEntryListConverter.cs
- CallContext.cs
- TemplateEditingFrame.cs
- figurelengthconverter.cs
- ServiceDescriptions.cs
- StringAnimationUsingKeyFrames.cs
- CompositeScriptReference.cs
- XPathEmptyIterator.cs
- XmlSignatureProperties.cs
- ReachSerializableProperties.cs
- RepeatBehaviorConverter.cs
- ThaiBuddhistCalendar.cs
- RuleSettings.cs
- panel.cs
- BrowserInteropHelper.cs
- ClrProviderManifest.cs
- ServiceOperationWrapper.cs
- documentation.cs
- WithStatement.cs
- DesignerLoader.cs
- XomlCompilerError.cs
- CompositionCommandSet.cs
- XmlNamespaceDeclarationsAttribute.cs
- ReturnType.cs
- InternalResources.cs
- basevalidator.cs
- ReverseQueryOperator.cs
- Run.cs
- ActiveDocumentEvent.cs
- ResourcesGenerator.cs
- LinqDataSourceView.cs
- SqlClientPermission.cs
- TextControlDesigner.cs
- KeyValuePair.cs
- DataGridRowDetailsEventArgs.cs
- Vertex.cs
- DataGridViewButtonCell.cs
- DrawingVisualDrawingContext.cs
- DataList.cs
- ItemsControlAutomationPeer.cs
- Viewport2DVisual3D.cs
- ProfileParameter.cs
- ValidationPropertyAttribute.cs
- SchemaTableColumn.cs
- XamlStackWriter.cs
- DockPanel.cs
- MissingManifestResourceException.cs
- SystemBrushes.cs
- WebPartHelpVerb.cs
- WebControlParameterProxy.cs
- RegisteredArrayDeclaration.cs
- ValidateNames.cs
- FormParameter.cs
- unsafenativemethodstextservices.cs
- StructureChangedEventArgs.cs
- LogicalExpr.cs
- CheckBox.cs
- HTMLTagNameToTypeMapper.cs
- ConnectionStringEditor.cs
- TemplateFactory.cs
- RIPEMD160.cs
- PropertyConverter.cs