Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- TextDpi.cs
- SerTrace.cs
- ConfigurationLocationCollection.cs
- TagPrefixCollection.cs
- BasicExpressionVisitor.cs
- StringInfo.cs
- DataGridViewUtilities.cs
- CodeConditionStatement.cs
- CompareValidator.cs
- ToolbarAUtomationPeer.cs
- GeneratedContractType.cs
- RelationshipManager.cs
- TypeElement.cs
- WorkItem.cs
- _OverlappedAsyncResult.cs
- XmlSerializationGeneratedCode.cs
- ScopedMessagePartSpecification.cs
- localization.cs
- SoapUnknownHeader.cs
- _ChunkParse.cs
- TreeNodeBindingCollection.cs
- TextElement.cs
- BackgroundFormatInfo.cs
- WinFormsSecurity.cs
- InstanceKey.cs
- ChildrenQuery.cs
- Run.cs
- TemplatedWizardStep.cs
- FileSystemWatcher.cs
- TextRunCacheImp.cs
- RoleGroupCollection.cs
- EntityStoreSchemaFilterEntry.cs
- _NativeSSPI.cs
- HtmlPanelAdapter.cs
- CodeAttributeDeclarationCollection.cs
- FilteredReadOnlyMetadataCollection.cs
- BulletedList.cs
- DataListAutoFormat.cs
- Content.cs
- Emitter.cs
- SelectionWordBreaker.cs
- DocumentationServerProtocol.cs
- BezierSegment.cs
- IIS7WorkerRequest.cs
- WebPermission.cs
- EnumCodeDomSerializer.cs
- SQLMoney.cs
- KnownAssemblyEntry.cs
- CollectionType.cs
- ImageBrush.cs
- ValueExpressions.cs
- BamlReader.cs
- DataStorage.cs
- HostExecutionContextManager.cs
- Utilities.cs
- ObjectHelper.cs
- BooleanProjectedSlot.cs
- DBConnection.cs
- IgnoreFlushAndCloseStream.cs
- BaseComponentEditor.cs
- PipelineModuleStepContainer.cs
- ScrollProperties.cs
- SystemWebSectionGroup.cs
- ConfigurationManager.cs
- FixedPosition.cs
- ResourceSet.cs
- XmlQueryContext.cs
- ComponentSerializationService.cs
- ProfileEventArgs.cs
- DCSafeHandle.cs
- HttpCapabilitiesEvaluator.cs
- BuildProvider.cs
- XappLauncher.cs
- ConcurrentQueue.cs
- NavigationPropertySingletonExpression.cs
- HyperLinkStyle.cs
- ZipArchive.cs
- PenLineJoinValidation.cs
- XPathBinder.cs
- SchemaImporterExtensionElementCollection.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- Metadata.cs
- CommandHelpers.cs
- WaitHandleCannotBeOpenedException.cs
- Model3DCollection.cs
- ImageKeyConverter.cs
- OletxResourceManager.cs
- DesignTimeType.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- ThreadPoolTaskScheduler.cs
- UriTemplateVariablePathSegment.cs
- InstanceCompleteException.cs
- LocalValueEnumerator.cs
- ThreadLocal.cs
- RegisteredHiddenField.cs
- BindingCollection.cs
- DateTimePicker.cs
- CapiSafeHandles.cs
- WaitHandle.cs
- ListItemViewControl.cs