Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } }
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BuildTopDownAttribute.cs
- BinaryConverter.cs
- VoiceObjectToken.cs
- PolicyFactory.cs
- PtsHelper.cs
- WindowsSolidBrush.cs
- ToolStripProgressBar.cs
- DataSvcMapFileSerializer.cs
- Int32RectValueSerializer.cs
- MultitargetUtil.cs
- HtmlButton.cs
- ProcessHostMapPath.cs
- HelpKeywordAttribute.cs
- NumericPagerField.cs
- CommandBindingCollection.cs
- Nullable.cs
- ZipFileInfo.cs
- ObjectContextServiceProvider.cs
- TokenizerHelper.cs
- InkCollectionBehavior.cs
- PointValueSerializer.cs
- ValueConversionAttribute.cs
- TextParentUndoUnit.cs
- BodyWriter.cs
- HtmlInputPassword.cs
- XPathConvert.cs
- DataSourceXmlSerializer.cs
- DependencyPropertyHelper.cs
- DocumentViewerBase.cs
- CodeExporter.cs
- MemoryStream.cs
- FileAuthorizationModule.cs
- Evidence.cs
- PenContexts.cs
- DateTimeUtil.cs
- AssemblyBuilderData.cs
- NamespaceDecl.cs
- ParenthesizePropertyNameAttribute.cs
- XsdCachingReader.cs
- BinaryCommonClasses.cs
- OleDbPropertySetGuid.cs
- FrameworkObject.cs
- MULTI_QI.cs
- XmlMapping.cs
- DocumentReference.cs
- DragDrop.cs
- RSAOAEPKeyExchangeDeformatter.cs
- DateTimeFormatInfo.cs
- WebPartRestoreVerb.cs
- Helpers.cs
- EntityObject.cs
- LinearGradientBrush.cs
- DataRelationCollection.cs
- EventWaitHandle.cs
- XmlAnyElementAttribute.cs
- SizeConverter.cs
- MouseDevice.cs
- HttpCookieCollection.cs
- ScrollChangedEventArgs.cs
- ListSourceHelper.cs
- SmtpMail.cs
- SiteMapDataSourceView.cs
- UnsafeNativeMethodsPenimc.cs
- UpdateRecord.cs
- SystemIPv6InterfaceProperties.cs
- IncrementalHitTester.cs
- Parallel.cs
- MenuCommandsChangedEventArgs.cs
- TextElementCollection.cs
- _ProxyRegBlob.cs
- CleanUpVirtualizedItemEventArgs.cs
- GPRECTF.cs
- WindowsStartMenu.cs
- PropertyCollection.cs
- TheQuery.cs
- SqlSelectClauseBuilder.cs
- SubpageParaClient.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ImageButton.cs
- FamilyCollection.cs
- Selector.cs
- PaintEvent.cs
- ExpressionValueEditor.cs
- IIS7WorkerRequest.cs
- ExpressionConverter.cs
- ProbeMatchesApril2005.cs
- LinkClickEvent.cs
- QuaternionConverter.cs
- XPathNodeList.cs
- OrderedDictionaryStateHelper.cs
- DataServiceQueryOfT.cs
- ResourcePermissionBase.cs
- PhysicalOps.cs
- UrlAuthFailedErrorFormatter.cs
- FrameworkContentElementAutomationPeer.cs
- GenerateScriptTypeAttribute.cs
- Int32Animation.cs
- Point4D.cs
- TransmissionStrategy.cs
- PersistenceParticipant.cs