Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WizardForm.cs
- StrongNameIdentityPermission.cs
- XmlElementAttributes.cs
- GridViewAutomationPeer.cs
- KeyboardNavigation.cs
- DataGridCellClipboardEventArgs.cs
- UnauthorizedWebPart.cs
- XmlSchemaElement.cs
- RenderCapability.cs
- PointHitTestResult.cs
- KeyInterop.cs
- VariableQuery.cs
- BeginStoryboard.cs
- ListViewDataItem.cs
- HttpVersion.cs
- GeneralTransform.cs
- WebPartsSection.cs
- PriorityRange.cs
- DataGridViewCellStateChangedEventArgs.cs
- ControlBuilder.cs
- ChannelTraceRecord.cs
- DictationGrammar.cs
- DataGridViewRowHeaderCell.cs
- AssociatedControlConverter.cs
- PersonalizationAdministration.cs
- OracleTimeSpan.cs
- MulticastOption.cs
- _NegotiateClient.cs
- SafeViewOfFileHandle.cs
- SharedConnectionListener.cs
- ReadWriteObjectLock.cs
- StringDictionary.cs
- MaskedTextBoxTextEditorDropDown.cs
- EntityTypeEmitter.cs
- MatrixIndependentAnimationStorage.cs
- AppendHelper.cs
- MouseActionConverter.cs
- XmlSequenceWriter.cs
- PropertyFilter.cs
- CookieProtection.cs
- EmptyEnumerator.cs
- DispatcherProcessingDisabled.cs
- XmlElementCollection.cs
- MatrixAnimationUsingPath.cs
- RegistryExceptionHelper.cs
- Profiler.cs
- MemoryPressure.cs
- TaskSchedulerException.cs
- SoapEnumAttribute.cs
- GridViewDeleteEventArgs.cs
- ProviderMetadata.cs
- WsrmMessageInfo.cs
- InteropBitmapSource.cs
- ToolBarButtonClickEvent.cs
- TextTreeRootTextBlock.cs
- BitmapMetadataBlob.cs
- SpoolingTaskBase.cs
- StylusPlugin.cs
- LoopExpression.cs
- Win32SafeHandles.cs
- DoubleIndependentAnimationStorage.cs
- PenContext.cs
- ResourceManagerWrapper.cs
- SortDescriptionCollection.cs
- FontUnitConverter.cs
- TraceRecords.cs
- Floater.cs
- SamlSubject.cs
- DataStreams.cs
- TextParentUndoUnit.cs
- ResourceDescriptionAttribute.cs
- ServiceBuildProvider.cs
- CanonicalXml.cs
- DeploymentSectionCache.cs
- ColorAnimation.cs
- DescendantOverDescendantQuery.cs
- CollectionTypeElement.cs
- ProviderCollection.cs
- BindingMemberInfo.cs
- SqlInternalConnectionSmi.cs
- ScrollEvent.cs
- StrokeRenderer.cs
- ObfuscationAttribute.cs
- DefinitionBase.cs
- IsolatedStorage.cs
- AspNetSynchronizationContext.cs
- SchemaHelper.cs
- PolyLineSegment.cs
- DeliveryRequirementsAttribute.cs
- ComponentGuaranteesAttribute.cs
- Oci.cs
- TransformerInfoCollection.cs
- RuntimeWrappedException.cs
- QilIterator.cs
- VisualTreeHelper.cs
- SiteMapNode.cs
- DataException.cs
- PageAdapter.cs
- GridViewSelectEventArgs.cs
- EmissiveMaterial.cs