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
- KeyConverter.cs
- HashSet.cs
- RbTree.cs
- XmlTextReaderImpl.cs
- SkewTransform.cs
- ProcessModelInfo.cs
- DefaultClaimSet.cs
- NextPreviousPagerField.cs
- EmulateRecognizeCompletedEventArgs.cs
- Matrix3D.cs
- ErrorTableItemStyle.cs
- Variable.cs
- BackgroundFormatInfo.cs
- DesignerSerializationVisibilityAttribute.cs
- EntityViewGenerator.cs
- FaultCallbackWrapper.cs
- LocalizedNameDescriptionPair.cs
- ManualResetEvent.cs
- ButtonFlatAdapter.cs
- securitycriticaldata.cs
- FileVersionInfo.cs
- MatrixConverter.cs
- FormCollection.cs
- DPTypeDescriptorContext.cs
- TypeDefinition.cs
- DataGridTextBox.cs
- GroupByExpressionRewriter.cs
- ConfigErrorGlyph.cs
- GridViewSortEventArgs.cs
- GradientStop.cs
- Stackframe.cs
- PanelStyle.cs
- MediaContextNotificationWindow.cs
- PermissionRequestEvidence.cs
- RouteTable.cs
- CharacterShapingProperties.cs
- CodeNamespace.cs
- CommunicationObject.cs
- MissingMethodException.cs
- DateTimeFormatInfo.cs
- ServicesUtilities.cs
- DataServiceQuery.cs
- LineVisual.cs
- MultipartIdentifier.cs
- DBConcurrencyException.cs
- MemberAccessException.cs
- FileSecurity.cs
- ConsoleKeyInfo.cs
- FileFormatException.cs
- ExpressionBuilder.cs
- PrintControllerWithStatusDialog.cs
- PseudoWebRequest.cs
- Error.cs
- CodeStatementCollection.cs
- TextTabProperties.cs
- EntityDataSourceUtil.cs
- SkewTransform.cs
- XmlSignatureManifest.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- ISSmlParser.cs
- RepeatBehaviorConverter.cs
- ServiceObjectContainer.cs
- ShaperBuffers.cs
- BindingsCollection.cs
- XmlNodeChangedEventArgs.cs
- EntityContainerAssociationSetEnd.cs
- BitmapEffectDrawingContent.cs
- LocalizationComments.cs
- DrawItemEvent.cs
- Point.cs
- XsltLibrary.cs
- AncillaryOps.cs
- SendAgentStatusRequest.cs
- SamlConditions.cs
- safemediahandle.cs
- ObjectDataSource.cs
- XmlSerializer.cs
- QilParameter.cs
- DbConnectionOptions.cs
- DataColumnPropertyDescriptor.cs
- WebPartConnectionsConnectVerb.cs
- XmlDataSourceView.cs
- MetafileHeader.cs
- XmlAttributes.cs
- PathNode.cs
- ClaimTypes.cs
- ReadOnlyTernaryTree.cs
- EdmFunction.cs
- Freezable.cs
- ObjectFullSpanRewriter.cs
- IisTraceListener.cs
- RenderDataDrawingContext.cs
- DrawTreeNodeEventArgs.cs
- AbsoluteQuery.cs
- DelegatingTypeDescriptionProvider.cs
- TextServicesProperty.cs
- WebConfigurationHostFileChange.cs
- BindingList.cs
- ButtonFlatAdapter.cs
- thaishape.cs