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
- CodeBinaryOperatorExpression.cs
- UnknownBitmapEncoder.cs
- SocketElement.cs
- SynchronizedDispatch.cs
- ValidatingReaderNodeData.cs
- BlurEffect.cs
- ContextQuery.cs
- TemplateControlCodeDomTreeGenerator.cs
- FixedPage.cs
- XmlWellformedWriterHelpers.cs
- TabletCollection.cs
- AttachmentCollection.cs
- SamlAuthorityBinding.cs
- OrCondition.cs
- MaskedTextBox.cs
- _ConnectionGroup.cs
- SafeCoTaskMem.cs
- XmlSchemaInclude.cs
- LowerCaseStringConverter.cs
- RootBrowserWindow.cs
- MultiSelector.cs
- ObjectDataSource.cs
- DbProviderFactoriesConfigurationHandler.cs
- LambdaCompiler.Generated.cs
- DataGridLinkButton.cs
- TextEditorMouse.cs
- RepeaterItem.cs
- SqlServices.cs
- SqlDelegatedTransaction.cs
- XamlPathDataSerializer.cs
- BitmapImage.cs
- SqlAliasesReferenced.cs
- CollectionEditorDialog.cs
- securestring.cs
- OrderedEnumerableRowCollection.cs
- SettingsProperty.cs
- objectresult_tresulttype.cs
- GeneralTransform3DTo2D.cs
- BuildResult.cs
- RegexTree.cs
- ObjectViewListener.cs
- TriggerCollection.cs
- WebServiceMethodData.cs
- OptimalBreakSession.cs
- ListViewSortEventArgs.cs
- ValidationPropertyAttribute.cs
- HttpServerUtilityWrapper.cs
- SQLBoolean.cs
- GeneralTransform3D.cs
- WebSysDescriptionAttribute.cs
- XmlFormatExtensionAttribute.cs
- Transform3DGroup.cs
- InheritanceRules.cs
- ToolStripLocationCancelEventArgs.cs
- ObjectStateFormatter.cs
- HttpCapabilitiesEvaluator.cs
- FileSecurity.cs
- CommandLineParser.cs
- DiscardableAttribute.cs
- MediaTimeline.cs
- TextParagraph.cs
- ExpressionBinding.cs
- BitmapEffectCollection.cs
- FlagsAttribute.cs
- DetailsViewPagerRow.cs
- EntityClassGenerator.cs
- SecureStringHasher.cs
- diagnosticsswitches.cs
- XPathScanner.cs
- CancelAsyncOperationRequest.cs
- Button.cs
- PropertyEmitter.cs
- TimelineGroup.cs
- WebPartDeleteVerb.cs
- ObjectAnimationUsingKeyFrames.cs
- EventPrivateKey.cs
- SqlUDTStorage.cs
- iisPickupDirectory.cs
- ObjectSet.cs
- WebErrorHandler.cs
- IdentifierCreationService.cs
- WebPartChrome.cs
- precedingquery.cs
- HeaderLabel.cs
- TemplateXamlParser.cs
- CompilationLock.cs
- ButtonDesigner.cs
- XmlBindingWorker.cs
- ExtentCqlBlock.cs
- shaperfactory.cs
- FileAuthorizationModule.cs
- ThreadStartException.cs
- PeerNameResolver.cs
- MemoryPressure.cs
- NegationPusher.cs
- GlyphCache.cs
- QueryStack.cs
- BaseDataList.cs
- clipboard.cs
- EntityDataSourceStatementEditor.cs