Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / clr / src / BCL / System / Security / Principal / GenericIdentity.cs / 1 / 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; [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"); 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"); 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. // ==++== // // 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; [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"); 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"); 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
- DecimalKeyFrameCollection.cs
- HttpListenerPrefixCollection.cs
- SourceItem.cs
- ADConnectionHelper.cs
- TemplateBuilder.cs
- UnSafeCharBuffer.cs
- COM2PictureConverter.cs
- RootAction.cs
- NamespaceEmitter.cs
- SystemIcmpV6Statistics.cs
- HashSetEqualityComparer.cs
- GridSplitter.cs
- CodeDomSerializerBase.cs
- EntityContainerRelationshipSetEnd.cs
- ChineseLunisolarCalendar.cs
- QueryValue.cs
- DataGridHelper.cs
- EntryWrittenEventArgs.cs
- DbProviderFactories.cs
- BitmapImage.cs
- ConfigXmlAttribute.cs
- XmlSchemaNotation.cs
- WebPartDisplayModeCancelEventArgs.cs
- nulltextcontainer.cs
- DrawItemEvent.cs
- PersonalizationDictionary.cs
- BinaryMethodMessage.cs
- CreatingCookieEventArgs.cs
- DataGridViewLayoutData.cs
- WsatEtwTraceListener.cs
- ListItemConverter.cs
- ResourceDefaultValueAttribute.cs
- PageParserFilter.cs
- SharedConnectionInfo.cs
- StringAnimationUsingKeyFrames.cs
- SystemNetworkInterface.cs
- BuildProviderAppliesToAttribute.cs
- X509PeerCertificateAuthentication.cs
- EntityProviderFactory.cs
- CharacterMetrics.cs
- ProtocolsConfiguration.cs
- MarkupWriter.cs
- TraceContextEventArgs.cs
- IdentityNotMappedException.cs
- ColorConverter.cs
- HttpCookieCollection.cs
- RegexCapture.cs
- LinqExpressionNormalizer.cs
- HtmlTextViewAdapter.cs
- OdbcEnvironment.cs
- AsymmetricSecurityProtocolFactory.cs
- FactoryGenerator.cs
- SafeThreadHandle.cs
- ListViewContainer.cs
- TraceUtils.cs
- BrowserInteropHelper.cs
- DataGridViewColumnTypePicker.cs
- Schema.cs
- PeerResolverBindingElement.cs
- GridViewEditEventArgs.cs
- AccessorTable.cs
- XmlRootAttribute.cs
- BaseTemplateBuildProvider.cs
- ThreadAbortException.cs
- EpmCustomContentSerializer.cs
- StaticContext.cs
- UnhandledExceptionEventArgs.cs
- StreamGeometry.cs
- TextBlockAutomationPeer.cs
- Component.cs
- DigestTraceRecordHelper.cs
- DataGridRow.cs
- ComponentDispatcherThread.cs
- TextEditorSelection.cs
- CollectionContainer.cs
- AccessKeyManager.cs
- ProfileServiceManager.cs
- StreamGeometryContext.cs
- SchemaCollectionCompiler.cs
- Point3DAnimation.cs
- OdbcInfoMessageEvent.cs
- List.cs
- Statements.cs
- CharacterMetrics.cs
- SystemShuttingDownException.cs
- ListViewInsertEventArgs.cs
- XsdBuildProvider.cs
- ActivitySurrogate.cs
- WindowsTooltip.cs
- designeractionlistschangedeventargs.cs
- MeasureData.cs
- SizeAnimationClockResource.cs
- SharedHttpsTransportManager.cs
- RelatedEnd.cs
- DataBoundLiteralControl.cs
- HwndProxyElementProvider.cs
- CircleHotSpot.cs
- SqlInternalConnectionTds.cs
- ToolboxService.cs
- EncryptedKey.cs