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
- AppLevelCompilationSectionCache.cs
- ObfuscateAssemblyAttribute.cs
- Ref.cs
- OrderByLifter.cs
- NonClientArea.cs
- PtsHelper.cs
- IndexedEnumerable.cs
- WindowsBrush.cs
- DataGridViewCellPaintingEventArgs.cs
- NameScopePropertyAttribute.cs
- ping.cs
- IISMapPath.cs
- RemotingHelper.cs
- PeerInvitationResponse.cs
- login.cs
- HttpContext.cs
- DateTimeUtil.cs
- COSERVERINFO.cs
- InputQueue.cs
- InternalConfigEventArgs.cs
- WindowsComboBox.cs
- HtmlTableRow.cs
- HttpResponseInternalWrapper.cs
- HwndStylusInputProvider.cs
- XslCompiledTransform.cs
- InfocardInteractiveChannelInitializer.cs
- ByteFacetDescriptionElement.cs
- HttpContextBase.cs
- TraceListeners.cs
- TextTreeUndoUnit.cs
- NullableDecimalMinMaxAggregationOperator.cs
- RuleSettingsCollection.cs
- OracleDataAdapter.cs
- MappingException.cs
- StyleReferenceConverter.cs
- EmbeddedMailObjectsCollection.cs
- TrackBar.cs
- RootBuilder.cs
- TableLayoutSettingsTypeConverter.cs
- BrowserCapabilitiesFactoryBase.cs
- SimpleFieldTemplateUserControl.cs
- GlyphTypeface.cs
- BitmapEffectInput.cs
- CompiledQueryCacheKey.cs
- StylusPoint.cs
- Rect3DConverter.cs
- LinkDescriptor.cs
- AnalyzedTree.cs
- SystemNetworkInterface.cs
- HeaderUtility.cs
- RuntimeVariablesExpression.cs
- DataGridTableCollection.cs
- InstalledFontCollection.cs
- CqlParserHelpers.cs
- ProviderConnectionPointCollection.cs
- WindowsListViewGroup.cs
- GridViewCellAutomationPeer.cs
- TraceListeners.cs
- DataBoundControlHelper.cs
- ResolvedKeyFrameEntry.cs
- TimeSpanOrInfiniteValidator.cs
- X509CertificateClaimSet.cs
- ResourceDisplayNameAttribute.cs
- DataTableNewRowEvent.cs
- StorageMappingItemCollection.cs
- Codec.cs
- FlowDocumentPageViewerAutomationPeer.cs
- RequestQueue.cs
- DbConnectionPoolOptions.cs
- ProcessStartInfo.cs
- Hashtable.cs
- EdmToObjectNamespaceMap.cs
- EventHandlersDesigner.cs
- CompoundFileIOPermission.cs
- HtmlFormParameterReader.cs
- OrderingInfo.cs
- SettingsAttributes.cs
- ItemList.cs
- HandledMouseEvent.cs
- NullableFloatSumAggregationOperator.cs
- ChineseLunisolarCalendar.cs
- X509Chain.cs
- Matrix3DStack.cs
- MessageLoggingElement.cs
- IdnMapping.cs
- MetaModel.cs
- Listen.cs
- RouteTable.cs
- SqlProviderManifest.cs
- Attachment.cs
- ButtonBaseDesigner.cs
- OpenTypeLayout.cs
- KeyMatchBuilder.cs
- EncodingInfo.cs
- WmlCommandAdapter.cs
- Descriptor.cs
- ListBox.cs
- IsolatedStorageFileStream.cs
- AspCompat.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs