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
- SspiWrapper.cs
- IsolatedStorageFilePermission.cs
- ConfigurationPermission.cs
- Parser.cs
- BamlBinaryWriter.cs
- TableLayoutStyleCollection.cs
- safelink.cs
- ServiceReference.cs
- FileSystemWatcher.cs
- FormViewInsertEventArgs.cs
- Certificate.cs
- Publisher.cs
- WebPartMenu.cs
- ControlBuilder.cs
- processwaithandle.cs
- WebZone.cs
- VisualStyleElement.cs
- UrlMappingsSection.cs
- SecurityToken.cs
- SqlUserDefinedTypeAttribute.cs
- DataGridViewImageCell.cs
- DataTableClearEvent.cs
- EntityContainerEntitySetDefiningQuery.cs
- LineGeometry.cs
- CmsInterop.cs
- ParseChildrenAsPropertiesAttribute.cs
- InheritanceService.cs
- XmlSchemaSet.cs
- FileDialog_Vista_Interop.cs
- HostedController.cs
- Module.cs
- WebServicesSection.cs
- IDReferencePropertyAttribute.cs
- CompositionTarget.cs
- PageFunction.cs
- ServiceHostFactory.cs
- SiteMap.cs
- TargetConverter.cs
- Converter.cs
- XmlILTrace.cs
- EastAsianLunisolarCalendar.cs
- StringCollection.cs
- InputLanguageCollection.cs
- DecoderFallbackWithFailureFlag.cs
- DefaultMemberAttribute.cs
- CodeLinePragma.cs
- WindowsUpDown.cs
- XmlDataDocument.cs
- SamlNameIdentifierClaimResource.cs
- ObjectHandle.cs
- MaskedTextBox.cs
- ReceiveCompletedEventArgs.cs
- String.cs
- DrawingAttributesDefaultValueFactory.cs
- FloaterParaClient.cs
- DBConnectionString.cs
- WindowsGraphics2.cs
- DataGridViewIntLinkedList.cs
- AdCreatedEventArgs.cs
- RestClientProxyHandler.cs
- FrameworkPropertyMetadata.cs
- DesignerTransactionCloseEvent.cs
- ConfigurationUtility.cs
- ConversionContext.cs
- WriteTimeStream.cs
- Merger.cs
- TagPrefixInfo.cs
- unsafenativemethodstextservices.cs
- DrawListViewColumnHeaderEventArgs.cs
- ParameterCollectionEditor.cs
- IDispatchConstantAttribute.cs
- ProfileSettings.cs
- GenerateTemporaryTargetAssembly.cs
- XmlKeywords.cs
- ConsoleEntryPoint.cs
- RSAPKCS1KeyExchangeFormatter.cs
- MarkupExtensionSerializer.cs
- DesignerSerializationOptionsAttribute.cs
- Math.cs
- RenderTargetBitmap.cs
- AuthenticationManager.cs
- RtfToXamlLexer.cs
- UITypeEditor.cs
- EventListener.cs
- RbTree.cs
- RedirectionProxy.cs
- ValidationSummary.cs
- CompilerErrorCollection.cs
- HttpValueCollection.cs
- ListDesigner.cs
- UnconditionalPolicy.cs
- ClientSettingsSection.cs
- ZipFileInfoCollection.cs
- ServiceReference.cs
- Point3DCollection.cs
- XsltFunctions.cs
- AnnotationObservableCollection.cs
- EntityTypeBase.cs
- DataServiceQueryContinuation.cs
- SafeLocalMemHandle.cs