Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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(""); } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlArrayAttribute.cs
- RtfControlWordInfo.cs
- CodeSnippetStatement.cs
- GenericEnumConverter.cs
- DescendentsWalkerBase.cs
- HtmlControl.cs
- SerializationException.cs
- ComplexBindingPropertiesAttribute.cs
- FontWeights.cs
- DesignerSelectionListAdapter.cs
- TimersDescriptionAttribute.cs
- MinimizableAttributeTypeConverter.cs
- DataGridViewHitTestInfo.cs
- CachedFontFamily.cs
- EventListenerClientSide.cs
- DbUpdateCommandTree.cs
- ProfileBuildProvider.cs
- SourceFileBuildProvider.cs
- SplineKeyFrames.cs
- ConfigPathUtility.cs
- XmlSchemaSubstitutionGroup.cs
- _BufferOffsetSize.cs
- SpotLight.cs
- AggregationMinMaxHelpers.cs
- DataRecordInfo.cs
- SequenceRangeCollection.cs
- OracleDataAdapter.cs
- StorageConditionPropertyMapping.cs
- BitmapCodecInfoInternal.cs
- FormatterServices.cs
- SqlBinder.cs
- ToolBarOverflowPanel.cs
- odbcmetadatafactory.cs
- SqlDataAdapter.cs
- AttributeProviderAttribute.cs
- RegexGroupCollection.cs
- CachedResourceDictionaryExtension.cs
- SqlServices.cs
- MobileControlPersister.cs
- TextStore.cs
- ButtonField.cs
- PropertyExpression.cs
- AuthenticationModulesSection.cs
- MutexSecurity.cs
- SrgsRule.cs
- TemplateBindingExtension.cs
- BindingGraph.cs
- DetailsViewDeletedEventArgs.cs
- ControlEvent.cs
- Stream.cs
- TitleStyle.cs
- FlowNode.cs
- ObservableCollection.cs
- ParserHooks.cs
- XmlTextEncoder.cs
- ServiceChannelProxy.cs
- DataGridRowEventArgs.cs
- EmptyStringExpandableObjectConverter.cs
- SiteMapNode.cs
- BitmapDownload.cs
- XomlCompiler.cs
- DocumentViewerConstants.cs
- CaseInsensitiveComparer.cs
- xamlnodes.cs
- initElementDictionary.cs
- InvalidTimeZoneException.cs
- NotifyInputEventArgs.cs
- Errors.cs
- SourceSwitch.cs
- ShutDownListener.cs
- PersonalizationProviderCollection.cs
- XpsResourcePolicy.cs
- TypeBrowser.xaml.cs
- Binding.cs
- TextBounds.cs
- ConfigPathUtility.cs
- XmlAnyAttributeAttribute.cs
- TypeLibConverter.cs
- ErrorTableItemStyle.cs
- Deflater.cs
- XsltArgumentList.cs
- WebPartDescription.cs
- ServiceNameElement.cs
- CustomWebEventKey.cs
- SqlBuilder.cs
- ResourceContainer.cs
- X509Chain.cs
- NetSectionGroup.cs
- DataTableTypeConverter.cs
- Collection.cs
- XamlReader.cs
- TemplateEditingFrame.cs
- PerformanceCountersElement.cs
- WindowsListView.cs
- X509Extension.cs
- InvocationExpression.cs
- Geometry.cs
- FormsAuthenticationUserCollection.cs
- EqualityComparer.cs
- DefaultMemberAttribute.cs