Code:
/ DotNET / DotNET / 8.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
- CodeParameterDeclarationExpression.cs
- ResourceDescriptionAttribute.cs
- CodeCompiler.cs
- sqlinternaltransaction.cs
- WebPartDisplayModeEventArgs.cs
- DbDataRecord.cs
- LongCountAggregationOperator.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- GPPOINT.cs
- ObjectDataSource.cs
- PageContentAsyncResult.cs
- ObjectIDGenerator.cs
- DoubleCollectionConverter.cs
- EngineSiteSapi.cs
- SoapIncludeAttribute.cs
- RequestCachePolicy.cs
- SAPICategories.cs
- ScopelessEnumAttribute.cs
- ForEachAction.cs
- AnnotationResourceChangedEventArgs.cs
- Certificate.cs
- CompModSwitches.cs
- TextOutput.cs
- OdbcDataAdapter.cs
- CurrentChangingEventArgs.cs
- EncodingFallbackAwareXmlTextWriter.cs
- GradientBrush.cs
- ExpressionBuilderCollection.cs
- ProtocolsConfigurationEntry.cs
- MessageQueueCriteria.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- RuntimeResourceSet.cs
- SplayTreeNode.cs
- ProviderIncompatibleException.cs
- DataGridViewHitTestInfo.cs
- ByteStorage.cs
- PDBReader.cs
- Object.cs
- SecureStringHasher.cs
- BufferBuilder.cs
- TreeNodeCollectionEditorDialog.cs
- CodeConstructor.cs
- PointLightBase.cs
- X509Certificate.cs
- C14NUtil.cs
- UnsafeNativeMethods.cs
- X509SubjectKeyIdentifierClause.cs
- LightweightCodeGenerator.cs
- CmsUtils.cs
- ToolBar.cs
- LinqDataSource.cs
- HotCommands.cs
- TerminatingOperationBehavior.cs
- ExtractorMetadata.cs
- FlagsAttribute.cs
- DataSpaceManager.cs
- TypeUsage.cs
- SimplePropertyEntry.cs
- PrePrepareMethodAttribute.cs
- RegexInterpreter.cs
- SelectionRangeConverter.cs
- SqlUserDefinedTypeAttribute.cs
- TrackingAnnotationCollection.cs
- PropertyEmitterBase.cs
- PermissionRequestEvidence.cs
- SettingsBindableAttribute.cs
- TokenizerHelper.cs
- SrgsSubset.cs
- DbProviderManifest.cs
- ThemeDirectoryCompiler.cs
- CollectionType.cs
- SingleResultAttribute.cs
- FtpWebRequest.cs
- BitmapData.cs
- CodeConditionStatement.cs
- InputBuffer.cs
- JoinTreeSlot.cs
- FlowDecisionLabelFeature.cs
- DataSvcMapFileSerializer.cs
- HierarchicalDataBoundControl.cs
- ReadOnlyHierarchicalDataSourceView.cs
- HashRepartitionEnumerator.cs
- LeftCellWrapper.cs
- BaseResourcesBuildProvider.cs
- DBCommandBuilder.cs
- ResponseStream.cs
- ApplicationProxyInternal.cs
- JulianCalendar.cs
- WebServiceParameterData.cs
- BitmapSourceSafeMILHandle.cs
- ToolStripProgressBar.cs
- ClientRuntimeConfig.cs
- ValueCollectionParameterReader.cs
- TraceHandler.cs
- Block.cs
- SqlHelper.cs
- GlyphingCache.cs
- XPathAncestorIterator.cs
- UrlAuthorizationModule.cs
- PageThemeCodeDomTreeGenerator.cs