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
- ConnectionPointGlyph.cs
- OdbcParameterCollection.cs
- DeadLetterQueue.cs
- WebPartHelpVerb.cs
- ReadOnlyCollectionBuilder.cs
- ItemsControl.cs
- User.cs
- CodeSubDirectoriesCollection.cs
- WindowsToolbar.cs
- webclient.cs
- SymDocumentType.cs
- Int32.cs
- ReflectionHelper.cs
- Material.cs
- LayoutTable.cs
- DataServiceHost.cs
- wmiutil.cs
- Converter.cs
- cryptoapiTransform.cs
- TextServicesContext.cs
- tibetanshape.cs
- CompositeDataBoundControl.cs
- MetadataFile.cs
- CalendarButton.cs
- ProviderCollection.cs
- SystemPens.cs
- DataContext.cs
- AudioDeviceOut.cs
- ButtonColumn.cs
- MissingFieldException.cs
- XmlnsCompatibleWithAttribute.cs
- KeyEventArgs.cs
- InternalCache.cs
- OracleBoolean.cs
- Evaluator.cs
- CultureTableRecord.cs
- ZoneIdentityPermission.cs
- BinaryMethodMessage.cs
- TextTreeNode.cs
- GPRECT.cs
- BitmapPalette.cs
- SafeLibraryHandle.cs
- InvokePatternIdentifiers.cs
- ValidateNames.cs
- FlowchartDesigner.xaml.cs
- IxmlLineInfo.cs
- OleDbStruct.cs
- HtmlProps.cs
- TransactionBridgeSection.cs
- TypeBinaryExpression.cs
- InvokerUtil.cs
- EmissiveMaterial.cs
- CopyAction.cs
- rsa.cs
- XmlCodeExporter.cs
- BufferedStream.cs
- xsdvalidator.cs
- GridProviderWrapper.cs
- WebPartActionVerb.cs
- SchemaMapping.cs
- BamlTreeMap.cs
- ComponentDispatcherThread.cs
- TagPrefixAttribute.cs
- RbTree.cs
- SecurityContext.cs
- ChildTable.cs
- TypeSystem.cs
- OperationCanceledException.cs
- Compiler.cs
- PropertyGrid.cs
- GroupBox.cs
- PointValueSerializer.cs
- PageClientProxyGenerator.cs
- Html32TextWriter.cs
- DataControlImageButton.cs
- Maps.cs
- PermissionSet.cs
- ParameterCollectionEditor.cs
- LayoutTable.cs
- TextUtf8RawTextWriter.cs
- MinMaxParagraphWidth.cs
- ObjectKeyFrameCollection.cs
- ApplicationContext.cs
- XPathNavigatorKeyComparer.cs
- Panel.cs
- HostVisual.cs
- HyperlinkAutomationPeer.cs
- SrgsItemList.cs
- NamespaceList.cs
- TagPrefixCollection.cs
- Clipboard.cs
- Condition.cs
- PreProcessor.cs
- FileDialog.cs
- ZipIOCentralDirectoryFileHeader.cs
- PackagePart.cs
- BaseTemplateParser.cs
- EncodingDataItem.cs
- ShimAsPublicXamlType.cs
- MemberCollection.cs