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
- SecurityPermission.cs
- VisualBasic.cs
- VoiceObjectToken.cs
- Rotation3D.cs
- PreApplicationStartMethodAttribute.cs
- ManipulationPivot.cs
- GridViewAutomationPeer.cs
- HostSecurityManager.cs
- Calendar.cs
- DataTableReader.cs
- WorkflowViewStateService.cs
- PageThemeCodeDomTreeGenerator.cs
- ToolZone.cs
- SignatureResourcePool.cs
- SQLGuidStorage.cs
- RadioButtonPopupAdapter.cs
- MouseWheelEventArgs.cs
- NoResizeSelectionBorderGlyph.cs
- odbcmetadatacollectionnames.cs
- AssemblyAttributesGoHere.cs
- ButtonColumn.cs
- WebPartDescriptionCollection.cs
- FamilyMap.cs
- RuntimeConfigLKG.cs
- CharacterString.cs
- NestedContainer.cs
- DataServiceRequestException.cs
- MobilePage.cs
- ChangePassword.cs
- PathFigureCollectionValueSerializer.cs
- SiteMapNodeItem.cs
- XmlDesignerDataSourceView.cs
- DesignerTransaction.cs
- ModelFunction.cs
- QilVisitor.cs
- serverconfig.cs
- printdlgexmarshaler.cs
- StorageRoot.cs
- TextEditorThreadLocalStore.cs
- WebPartActionVerb.cs
- Substitution.cs
- Endpoint.cs
- CompositeActivityValidator.cs
- HttpsHostedTransportConfiguration.cs
- StructuredTypeEmitter.cs
- AliasedSlot.cs
- SecurityTokenTypes.cs
- WmiEventSink.cs
- XPathDocumentBuilder.cs
- DataListAutoFormat.cs
- WizardForm.cs
- XmlC14NWriter.cs
- CurrencyWrapper.cs
- ModelToObjectValueConverter.cs
- DrawingGroup.cs
- DesignerTransaction.cs
- dsa.cs
- LazyTextWriterCreator.cs
- InheritedPropertyChangedEventArgs.cs
- PriorityQueue.cs
- SqlAliaser.cs
- updateconfighost.cs
- SelectionProcessor.cs
- InheritanceContextHelper.cs
- SchemaImporterExtensionElement.cs
- FlowLayout.cs
- _FixedSizeReader.cs
- RenderOptions.cs
- PropertyMappingExceptionEventArgs.cs
- PropertyChangingEventArgs.cs
- TypeUsage.cs
- LinkClickEvent.cs
- xmlformatgeneratorstatics.cs
- BaseConfigurationRecord.cs
- KnownTypesProvider.cs
- FontFamilyConverter.cs
- ListDictionary.cs
- MatrixValueSerializer.cs
- SmiTypedGetterSetter.cs
- FlowDocumentScrollViewer.cs
- NumberSubstitution.cs
- DataGridViewRowCollection.cs
- CheckBox.cs
- DataGridSortingEventArgs.cs
- ExpressionBinding.cs
- SQLChars.cs
- ClientSponsor.cs
- DocumentViewerBaseAutomationPeer.cs
- CursorConverter.cs
- ButtonBase.cs
- DeliveryStrategy.cs
- OleTxTransactionInfo.cs
- Mappings.cs
- FormView.cs
- Opcode.cs
- ComponentResourceKey.cs
- CheckBox.cs
- DefaultProxySection.cs
- Utils.cs
- ChannelSinkStacks.cs