Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SynchronousChannelMergeEnumerator.cs
- DataGridViewColumnEventArgs.cs
- FilterQuery.cs
- GeometryCombineModeValidation.cs
- DefinitionUpdate.cs
- XPathDescendantIterator.cs
- X509Certificate2Collection.cs
- SamlSecurityTokenAuthenticator.cs
- PointCollectionValueSerializer.cs
- exports.cs
- CookieHandler.cs
- BaseParagraph.cs
- IntAverageAggregationOperator.cs
- FactoryGenerator.cs
- FixedBufferAttribute.cs
- DataServiceKeyAttribute.cs
- TiffBitmapEncoder.cs
- SmtpReplyReaderFactory.cs
- SchemaSetCompiler.cs
- DrawingCollection.cs
- __Filters.cs
- SQLBoolean.cs
- COM2ColorConverter.cs
- ApplicationId.cs
- SqlDataRecord.cs
- PagerSettings.cs
- _FixedSizeReader.cs
- Int16AnimationUsingKeyFrames.cs
- Speller.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- ClientSession.cs
- WorkflowInstanceExtensionManager.cs
- SafeBitVector32.cs
- CatalogPart.cs
- XmlAnyElementAttribute.cs
- DocumentSequence.cs
- NativeWrapper.cs
- StrongNameUtility.cs
- DictionarySectionHandler.cs
- SemanticBasicElement.cs
- XmlMessageFormatter.cs
- ClrProviderManifest.cs
- MimeTypeMapper.cs
- WebCategoryAttribute.cs
- XmlSchemaSimpleContentExtension.cs
- KeyEventArgs.cs
- TimelineCollection.cs
- ComponentResourceKeyConverter.cs
- SmtpFailedRecipientsException.cs
- CacheForPrimitiveTypes.cs
- TreeChangeInfo.cs
- DictionaryItemsCollection.cs
- httpserverutility.cs
- ImageSource.cs
- Asn1IntegerConverter.cs
- DistributedTransactionPermission.cs
- DataGridSortCommandEventArgs.cs
- HtmlControl.cs
- TextEditorParagraphs.cs
- Int32.cs
- EventArgs.cs
- IdleTimeoutMonitor.cs
- EventLogReader.cs
- MobileTextWriter.cs
- BitmapPalettes.cs
- UseAttributeSetsAction.cs
- ActivityUtilities.cs
- SynchronizationContextHelper.cs
- ChooseAction.cs
- SqlDataSourceCache.cs
- VScrollBar.cs
- _RegBlobWebProxyDataBuilder.cs
- BaseAutoFormat.cs
- TimeSpanFormat.cs
- InkCanvasSelection.cs
- ControlHelper.cs
- SqlVersion.cs
- ColumnClickEvent.cs
- DataRecordInternal.cs
- safemediahandle.cs
- DispatcherObject.cs
- SiteMapDataSourceView.cs
- Scene3D.cs
- DesignerAdapterAttribute.cs
- DtdParser.cs
- CapabilitiesUse.cs
- EventProviderWriter.cs
- NotifyCollectionChangedEventArgs.cs
- ByteRangeDownloader.cs
- Command.cs
- Slider.cs
- EntityContainerEntitySet.cs
- CheckBoxPopupAdapter.cs
- BreakRecordTable.cs
- BadImageFormatException.cs
- SettingsProperty.cs
- RemoveStoryboard.cs
- BufferedReceiveManager.cs
- InstanceDataCollectionCollection.cs
- RowToParametersTransformer.cs