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
- DependencySource.cs
- XsltCompileContext.cs
- DataFieldEditor.cs
- XmlSchemaSubstitutionGroup.cs
- ToolStripStatusLabel.cs
- InvalidCastException.cs
- FixedSchema.cs
- PropertyValue.cs
- EnumDataContract.cs
- DecimalStorage.cs
- DefaultValueConverter.cs
- IdentityManager.cs
- HostSecurityManager.cs
- ToolStripMenuItem.cs
- HtmlMobileTextWriter.cs
- DeviceSpecificChoiceCollection.cs
- SiteMapNodeItemEventArgs.cs
- InputScopeManager.cs
- CodeDesigner.cs
- ArgIterator.cs
- ToolStripOverflow.cs
- TagPrefixCollection.cs
- HwndTarget.cs
- GenerateHelper.cs
- XmlStringTable.cs
- TreeIterators.cs
- XmlSchemaFacet.cs
- ConnectionOrientedTransportChannelFactory.cs
- Timer.cs
- SimpleType.cs
- ObjectItemNoOpAssemblyLoader.cs
- ReturnEventArgs.cs
- Array.cs
- SafeWaitHandle.cs
- keycontainerpermission.cs
- InlineCollection.cs
- PolicyVersion.cs
- HostedHttpContext.cs
- XamlToRtfParser.cs
- AutoSizeComboBox.cs
- ColorMatrix.cs
- EntityDataSourceWrapperCollection.cs
- TextSelectionHelper.cs
- WebControlAdapter.cs
- ClassHandlersStore.cs
- RequestBringIntoViewEventArgs.cs
- Error.cs
- SpellerError.cs
- SqlRewriteScalarSubqueries.cs
- ToolStripContainer.cs
- Compiler.cs
- RemotingAttributes.cs
- ProjectionCamera.cs
- CodeMethodInvokeExpression.cs
- Point3DIndependentAnimationStorage.cs
- XmlEncoding.cs
- TextViewBase.cs
- DependencyObject.cs
- InstanceLockTracking.cs
- ViewStateModeByIdAttribute.cs
- PanelDesigner.cs
- TextLineBreak.cs
- RadioButton.cs
- HttpRuntime.cs
- ErrorFormatter.cs
- RawStylusInputCustomDataList.cs
- PasswordTextContainer.cs
- DependencyPropertyDescriptor.cs
- CombinedHttpChannel.cs
- PageThemeBuildProvider.cs
- SqlBulkCopyColumnMappingCollection.cs
- XMLSyntaxException.cs
- FormCollection.cs
- SourceInterpreter.cs
- GeometryGroup.cs
- XmlHierarchicalEnumerable.cs
- Journaling.cs
- PrintControllerWithStatusDialog.cs
- UndoManager.cs
- ConfigurationException.cs
- CodeSnippetStatement.cs
- wgx_sdk_version.cs
- RetrieveVirtualItemEventArgs.cs
- System.Data_BID.cs
- EntityClientCacheKey.cs
- XmlDocumentFragment.cs
- DrawingImage.cs
- DbConnectionPool.cs
- UserNamePasswordServiceCredential.cs
- EmptyStringExpandableObjectConverter.cs
- SpanIndex.cs
- FixedSOMElement.cs
- TerminateSequence.cs
- BaseComponentEditor.cs
- InternalBase.cs
- XmlIterators.cs
- SemanticResolver.cs
- SubtreeProcessor.cs
- Int64.cs
- ObjectRef.cs