Code:
/ DotNET / DotNET / 8.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
- HtmlDocument.cs
- DataServiceClientException.cs
- ListViewInsertEventArgs.cs
- SchemaInfo.cs
- Visitor.cs
- KnownBoxes.cs
- ListBindableAttribute.cs
- _UriSyntax.cs
- RowCache.cs
- PluralizationService.cs
- NamedObject.cs
- LicenseProviderAttribute.cs
- SafeEventLogWriteHandle.cs
- UnsafeNativeMethodsTablet.cs
- ToRequest.cs
- DebuggerAttributes.cs
- MessageQueueAccessControlEntry.cs
- WebPartMinimizeVerb.cs
- ButtonColumn.cs
- WaitForChangedResult.cs
- MatrixTransform.cs
- GestureRecognitionResult.cs
- LoginCancelEventArgs.cs
- BookmarkTable.cs
- DynamicFilterExpression.cs
- DocumentPageView.cs
- Int32AnimationUsingKeyFrames.cs
- BaseValidator.cs
- WrapperSecurityCommunicationObject.cs
- WindowAutomationPeer.cs
- ADRoleFactory.cs
- SHA1.cs
- WsatServiceCertificate.cs
- AstTree.cs
- PopupEventArgs.cs
- HtmlInputPassword.cs
- BitmapInitialize.cs
- DataColumnMappingCollection.cs
- TokenCreationParameter.cs
- CodeNamespaceCollection.cs
- NetTcpSecurity.cs
- StreamAsIStream.cs
- InternalPermissions.cs
- DataGridViewHeaderCell.cs
- LineProperties.cs
- ObjectPropertyMapping.cs
- MissingFieldException.cs
- UrlAuthFailedErrorFormatter.cs
- NativeMethods.cs
- ProjectedWrapper.cs
- RowUpdatingEventArgs.cs
- BuildResultCache.cs
- XmlTextReaderImplHelpers.cs
- TextTreeFixupNode.cs
- HiddenField.cs
- MaskedTextProvider.cs
- ValidatingReaderNodeData.cs
- IdnMapping.cs
- WebConvert.cs
- SafeNativeMethods.cs
- QueryTask.cs
- ADMembershipProvider.cs
- Math.cs
- AssemblyAttributesGoHere.cs
- WorkflowRuntimeServiceElementCollection.cs
- Bits.cs
- SecureUICommand.cs
- ObjectNavigationPropertyMapping.cs
- GridViewHeaderRowPresenter.cs
- AsymmetricSignatureFormatter.cs
- AnnotationStore.cs
- WasHttpHandlersInstallComponent.cs
- FilteredAttributeCollection.cs
- IpcChannelHelper.cs
- GroupAggregateExpr.cs
- EventMappingSettings.cs
- TextSelectionHelper.cs
- AnnotationDocumentPaginator.cs
- DefaultProxySection.cs
- ServiceRouteHandler.cs
- TextDocumentView.cs
- InfoCardProofToken.cs
- MetabaseServerConfig.cs
- ResourcesChangeInfo.cs
- BuildManagerHost.cs
- ToolstripProfessionalRenderer.cs
- LogEntrySerializationException.cs
- ButtonBase.cs
- NullableLongSumAggregationOperator.cs
- ListView.cs
- DbSetClause.cs
- AlternateView.cs
- DragEvent.cs
- Geometry.cs
- CellCreator.cs
- TextServicesProperty.cs
- BindingGraph.cs
- HtmlContainerControl.cs
- TabControlAutomationPeer.cs
- Adorner.cs