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
- RectAnimation.cs
- FormViewRow.cs
- HttpRequest.cs
- ActivityDesignerLayoutSerializers.cs
- SqlServer2KCompatibilityCheck.cs
- TextEffect.cs
- Subtree.cs
- RelationshipWrapper.cs
- BindingRestrictions.cs
- BinarySerializer.cs
- SourceElementsCollection.cs
- CustomCredentialPolicy.cs
- DummyDataSource.cs
- ImageConverter.cs
- DataGridViewColumn.cs
- System.Data.OracleClient_BID.cs
- ScalarType.cs
- ValidatingPropertiesEventArgs.cs
- FaultHandlingFilter.cs
- ContractCodeDomInfo.cs
- Stack.cs
- FlowStep.cs
- UxThemeWrapper.cs
- ClientConfigurationSystem.cs
- SqlUserDefinedAggregateAttribute.cs
- KeyValueConfigurationElement.cs
- ReaderContextStackData.cs
- PerfCounters.cs
- UnitySerializationHolder.cs
- SelectionEditor.cs
- SelectedDatesCollection.cs
- PreviewControlDesigner.cs
- GeometryDrawing.cs
- LayoutEvent.cs
- VisualStyleInformation.cs
- DBConnection.cs
- TrackBar.cs
- ProtocolViolationException.cs
- BooleanToVisibilityConverter.cs
- ExtentJoinTreeNode.cs
- dataobject.cs
- SimpleType.cs
- ExcludeFromCodeCoverageAttribute.cs
- Thumb.cs
- FontWeights.cs
- SrgsOneOf.cs
- WebEvents.cs
- ListViewItemCollectionEditor.cs
- DnsPermission.cs
- GPPOINT.cs
- BuildProvider.cs
- TypeUsage.cs
- OwnerDrawPropertyBag.cs
- DataObjectSettingDataEventArgs.cs
- CacheSection.cs
- ApplicationFileParser.cs
- SettingsBindableAttribute.cs
- ImmutableObjectAttribute.cs
- HttpResponseBase.cs
- Converter.cs
- XPathDescendantIterator.cs
- TableLayoutStyle.cs
- HTMLTextWriter.cs
- UniqueConstraint.cs
- CodePageEncoding.cs
- ColorContextHelper.cs
- SqlWebEventProvider.cs
- HierarchicalDataBoundControlAdapter.cs
- SQLDecimal.cs
- DEREncoding.cs
- NonBatchDirectoryCompiler.cs
- ToolStripComboBox.cs
- Duration.cs
- StructuralCache.cs
- Currency.cs
- BasicCommandTreeVisitor.cs
- DbExpressionBuilder.cs
- TreeNodeStyle.cs
- AuthenticationManager.cs
- CommonRemoteMemoryBlock.cs
- ProxyHelper.cs
- WCFServiceClientProxyGenerator.cs
- GraphicsPath.cs
- GPPOINT.cs
- InstancePersistenceException.cs
- serverconfig.cs
- DeviceSpecificChoice.cs
- StyleCollection.cs
- DataGridColumnHeader.cs
- AlignmentXValidation.cs
- RenderingBiasValidation.cs
- MouseGestureValueSerializer.cs
- CookieParameter.cs
- LogStore.cs
- Int32Rect.cs
- WebPartCatalogAddVerb.cs
- WebPartMenu.cs
- Operators.cs
- HyperLinkField.cs
- Listbox.cs