Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Security / Principal / GenericIdentity.cs / 1305376 / GenericIdentity.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //[....] // // // GenericIdentity.cs // // A generic identity // namespace System.Security.Principal { using System.Runtime.Remoting; using System; using System.Security.Util; using System.Diagnostics.Contracts; [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public class GenericIdentity : IIdentity { private string m_name; private string m_type; public GenericIdentity (string name) { if (name == null) throw new ArgumentNullException("name"); Contract.EndContractBlock(); m_name = name; m_type = ""; } public GenericIdentity (string name, string type) { if (name == null) throw new ArgumentNullException("name"); if (type == null) throw new ArgumentNullException("type"); Contract.EndContractBlock(); m_name = name; m_type = type; } public virtual string Name { get { return m_name; } } public virtual string AuthenticationType { get { return m_type; } } public virtual bool IsAuthenticated { get { return !m_name.Equals(""); } } } } // 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
- _SecureChannel.cs
- BaseCollection.cs
- brushes.cs
- TimeZone.cs
- WebBrowserHelper.cs
- CommandConverter.cs
- OneWayBindingElement.cs
- TypeUtil.cs
- ConnectionManagementElement.cs
- ServicePointManagerElement.cs
- Parser.cs
- _DomainName.cs
- EpmContentSerializerBase.cs
- IndexOutOfRangeException.cs
- XmlUTF8TextReader.cs
- ParseChildrenAsPropertiesAttribute.cs
- TextRunTypographyProperties.cs
- EntityDataSourceWrapperCollection.cs
- CertificateManager.cs
- DbConnectionPool.cs
- ChannelTokenTypeConverter.cs
- CodeNamespace.cs
- ModelServiceImpl.cs
- FixedSOMFixedBlock.cs
- OpCopier.cs
- DataGridViewCellStyleChangedEventArgs.cs
- SymbolPair.cs
- PolicyValidationException.cs
- OracleParameter.cs
- DomainLiteralReader.cs
- DataGridItem.cs
- Resources.Designer.cs
- ProgressBarHighlightConverter.cs
- DataGridViewTextBoxColumn.cs
- SupportsEventValidationAttribute.cs
- DnsEndPoint.cs
- IIS7UserPrincipal.cs
- RepeaterCommandEventArgs.cs
- HtmlElementEventArgs.cs
- sitestring.cs
- DrawingVisualDrawingContext.cs
- DataBindingHandlerAttribute.cs
- webeventbuffer.cs
- EntitySqlQueryState.cs
- TextParaLineResult.cs
- SmtpNegotiateAuthenticationModule.cs
- Token.cs
- TextEmbeddedObject.cs
- OdbcInfoMessageEvent.cs
- SplayTreeNode.cs
- EventLogEntry.cs
- CodeArrayIndexerExpression.cs
- ProtocolsConfigurationHandler.cs
- ConvertEvent.cs
- ToolboxComponentsCreatedEventArgs.cs
- SiteMapDataSource.cs
- DataGridCell.cs
- OrderByQueryOptionExpression.cs
- SmtpNetworkElement.cs
- cookiecollection.cs
- RSAPKCS1SignatureDeformatter.cs
- HttpWebRequest.cs
- DefaultBindingPropertyAttribute.cs
- WebPartMenuStyle.cs
- LiteralLink.cs
- BitmapFrame.cs
- AttachedPropertyDescriptor.cs
- Rectangle.cs
- FormViewPageEventArgs.cs
- ContextStaticAttribute.cs
- SuppressMessageAttribute.cs
- XmlSerializerFaultFormatter.cs
- ListMarkerSourceInfo.cs
- InputLanguageEventArgs.cs
- ServerProtocol.cs
- SafePEFileHandle.cs
- SecureConversationVersion.cs
- TransactionsSectionGroup.cs
- Profiler.cs
- AssemblyBuilder.cs
- ArrayExtension.cs
- HealthMonitoringSection.cs
- DataKey.cs
- APCustomTypeDescriptor.cs
- ScriptBehaviorDescriptor.cs
- Hash.cs
- BinaryConverter.cs
- WindowsFont.cs
- sqlser.cs
- RoleGroup.cs
- DataShape.cs
- CheckedPointers.cs
- CollectionChangedEventManager.cs
- ResetableIterator.cs
- LocalFileSettingsProvider.cs
- ValidationPropertyAttribute.cs
- FontDifferentiator.cs
- StringResourceManager.cs
- XmlWhitespace.cs
- ExceptionUtil.cs