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
- AssemblyHash.cs
- EdmConstants.cs
- __ConsoleStream.cs
- DataKey.cs
- WebServiceParameterData.cs
- BigInt.cs
- IndexedWhereQueryOperator.cs
- SystemIPv6InterfaceProperties.cs
- ModelUIElement3D.cs
- ActivityInfo.cs
- DataObjectAttribute.cs
- XmlParserContext.cs
- Persist.cs
- XDRSchema.cs
- Rect3DConverter.cs
- CodeNamespace.cs
- ListenerAdapterBase.cs
- OleDbError.cs
- FileDialogCustomPlace.cs
- FixedTextSelectionProcessor.cs
- ItemCollection.cs
- AsyncOperationManager.cs
- AsynchronousChannel.cs
- RouteData.cs
- CodeAttributeArgument.cs
- InstanceHandleConflictException.cs
- Sql8ExpressionRewriter.cs
- AbsoluteQuery.cs
- ParseNumbers.cs
- SmtpLoginAuthenticationModule.cs
- AnnotationHelper.cs
- DetailsViewModeEventArgs.cs
- ExpressionsCollectionConverter.cs
- FontStretches.cs
- VerificationException.cs
- EntityContainerEntitySet.cs
- DoubleAnimationUsingPath.cs
- SQLBinary.cs
- CustomMenuItemCollection.cs
- XmlSchemaAnnotation.cs
- XmlSchemaDatatype.cs
- IPHostEntry.cs
- Pair.cs
- PagesChangedEventArgs.cs
- Errors.cs
- Exception.cs
- EndpointBehaviorElementCollection.cs
- DataPagerField.cs
- NativeMethods.cs
- BitmapEffectState.cs
- InheritanceRules.cs
- Substitution.cs
- Validator.cs
- SnapshotChangeTrackingStrategy.cs
- DetailsViewDesigner.cs
- RoutedPropertyChangedEventArgs.cs
- KnownTypesHelper.cs
- HitTestDrawingContextWalker.cs
- MultiPropertyDescriptorGridEntry.cs
- CustomCategoryAttribute.cs
- GeometryCollection.cs
- CodeCastExpression.cs
- XmlSchemaDocumentation.cs
- RightsManagementEncryptedStream.cs
- AppDomainUnloadedException.cs
- SocketException.cs
- ErrorHandlerFaultInfo.cs
- TileModeValidation.cs
- RelationshipEnd.cs
- Clipboard.cs
- ExtenderProvidedPropertyAttribute.cs
- SerializationException.cs
- TextView.cs
- ClientProxyGenerator.cs
- Random.cs
- ListItemViewControl.cs
- ListViewItemEventArgs.cs
- PerspectiveCamera.cs
- FontUnitConverter.cs
- ScrollChrome.cs
- WsdlImporterElement.cs
- SQLInt64Storage.cs
- RowVisual.cs
- ThaiBuddhistCalendar.cs
- SourceFilter.cs
- Internal.cs
- WindowsAuthenticationEventArgs.cs
- QilInvokeLateBound.cs
- FormViewUpdatedEventArgs.cs
- UInt32Storage.cs
- wgx_exports.cs
- SqlCacheDependencySection.cs
- HttpRequestCacheValidator.cs
- ComponentResourceManager.cs
- CodeTypeReferenceExpression.cs
- StringAnimationBase.cs
- CacheDependency.cs
- TdsParserSessionPool.cs
- MethodBuilder.cs
- FontWeightConverter.cs