Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ILGenerator.cs
- CompositeScriptReferenceEventArgs.cs
- DataGridViewTopRowAccessibleObject.cs
- XmlAnyElementAttribute.cs
- PageCatalogPart.cs
- SmiMetaDataProperty.cs
- SqlEnums.cs
- QualifiedCellIdBoolean.cs
- _HelperAsyncResults.cs
- DashStyle.cs
- AVElementHelper.cs
- HostAdapter.cs
- CompilerHelpers.cs
- safelinkcollection.cs
- KeyValuePair.cs
- ParameterElementCollection.cs
- FontFamilyIdentifier.cs
- EmitterCache.cs
- SizeAnimationBase.cs
- WebUtil.cs
- LocalTransaction.cs
- SecurityTokenSpecification.cs
- ConnectivityStatus.cs
- RegexCompiler.cs
- InputLanguageSource.cs
- HandlerMappingMemo.cs
- DashStyle.cs
- SqlInfoMessageEvent.cs
- MarginCollapsingState.cs
- EncryptedXml.cs
- Menu.cs
- ValueProviderWrapper.cs
- SchemeSettingElement.cs
- CatalogZoneBase.cs
- ItemsChangedEventArgs.cs
- CompilationSection.cs
- CatchBlock.cs
- ProjectionRewriter.cs
- InstanceDataCollectionCollection.cs
- OleDbParameterCollection.cs
- SubqueryRules.cs
- SharedPerformanceCounter.cs
- AnimationStorage.cs
- DependencyPropertyValueSerializer.cs
- TPLETWProvider.cs
- MaskedTextBox.cs
- ZipIOExtraField.cs
- MenuScrollingVisibilityConverter.cs
- DrawingVisual.cs
- DateTimeConstantAttribute.cs
- AutomationPeer.cs
- TextTreeExtractElementUndoUnit.cs
- QuaternionAnimation.cs
- SafeNativeMethodsMilCoreApi.cs
- ExpressionBindings.cs
- ImagingCache.cs
- FixedSOMTableCell.cs
- MessageQueueAccessControlEntry.cs
- _SSPISessionCache.cs
- ToolStripContentPanel.cs
- PointAnimationUsingPath.cs
- AccessedThroughPropertyAttribute.cs
- _BaseOverlappedAsyncResult.cs
- ReliableSessionElement.cs
- ConstraintManager.cs
- ServiceDescription.cs
- OleDbRowUpdatingEvent.cs
- PnrpPermission.cs
- HttpHandlerActionCollection.cs
- NativeObjectSecurity.cs
- GacUtil.cs
- ValueType.cs
- X509CertificateChain.cs
- NTAccount.cs
- WebBrowsableAttribute.cs
- OdbcEnvironmentHandle.cs
- ReachDocumentReferenceSerializerAsync.cs
- CLSCompliantAttribute.cs
- Model3DCollection.cs
- TraceLog.cs
- AssemblyName.cs
- DependencyProperty.cs
- Trigger.cs
- RoleGroup.cs
- COM2EnumConverter.cs
- TypeConverterHelper.cs
- SoapSchemaMember.cs
- ItemContainerPattern.cs
- Point4D.cs
- CommandDevice.cs
- CodeArgumentReferenceExpression.cs
- DataSourceXmlClassAttribute.cs
- followingsibling.cs
- CommandConverter.cs
- DatatypeImplementation.cs
- ResourcePermissionBaseEntry.cs
- DynamicResourceExtensionConverter.cs
- SqlWriter.cs
- ResourcesBuildProvider.cs
- XmlObjectSerializerReadContext.cs