Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Security / Principal / GenericIdentity.cs / 1305376 / 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; using System.Diagnostics.Contracts; [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"); Contract.EndContractBlock(); 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"); Contract.EndContractBlock(); 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; using System.Diagnostics.Contracts; [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"); Contract.EndContractBlock(); 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"); Contract.EndContractBlock(); 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
- SmiConnection.cs
- Pens.cs
- BitmapEffect.cs
- TickBar.cs
- Rect3DValueSerializer.cs
- InvalidProgramException.cs
- DocumentOrderComparer.cs
- HelpKeywordAttribute.cs
- PreservationFileReader.cs
- CommonObjectSecurity.cs
- hresults.cs
- RichTextBoxAutomationPeer.cs
- ImportCatalogPart.cs
- PolicyStatement.cs
- HttpRequest.cs
- CellTreeNode.cs
- cache.cs
- XmlDigitalSignatureProcessor.cs
- TCEAdapterGenerator.cs
- TypeGeneratedEventArgs.cs
- MailAddressCollection.cs
- FrugalList.cs
- webproxy.cs
- XNodeNavigator.cs
- ContentPosition.cs
- SqlInternalConnectionSmi.cs
- ResourcePermissionBase.cs
- GridSplitter.cs
- Container.cs
- ClientApiGenerator.cs
- StylusPointCollection.cs
- TextWriter.cs
- ViewCellSlot.cs
- IndexedEnumerable.cs
- SafeCancelMibChangeNotify.cs
- WindowsGraphicsCacheManager.cs
- Tuple.cs
- PartManifestEntry.cs
- TextDocumentView.cs
- _MultipleConnectAsync.cs
- SqlHelper.cs
- BaseCollection.cs
- SocketException.cs
- PassportAuthenticationModule.cs
- DataRowIndexBuffer.cs
- DurableEnlistmentState.cs
- Sorting.cs
- SQLGuidStorage.cs
- ReadOnlyDataSourceView.cs
- DataStreams.cs
- MatrixAnimationUsingKeyFrames.cs
- DispatchOperationRuntime.cs
- EventListenerClientSide.cs
- CLSCompliantAttribute.cs
- AssemblyAssociatedContentFileAttribute.cs
- CodeAttributeArgumentCollection.cs
- objectquery_tresulttype.cs
- InvalidOperationException.cs
- SimpleModelProvider.cs
- StringStorage.cs
- DateRangeEvent.cs
- CodeVariableReferenceExpression.cs
- ClientScriptManager.cs
- CustomAttributeFormatException.cs
- ReservationNotFoundException.cs
- RoutedEvent.cs
- TextDecorations.cs
- DataGridCommandEventArgs.cs
- AppSettingsReader.cs
- LocalizabilityAttribute.cs
- CryptoKeySecurity.cs
- SqlTypeSystemProvider.cs
- PrimitiveXmlSerializers.cs
- XamlPathDataSerializer.cs
- TableRowCollection.cs
- Boolean.cs
- PageCache.cs
- DataGridViewCellCollection.cs
- AssociationTypeEmitter.cs
- InvokeWebService.cs
- DotExpr.cs
- controlskin.cs
- ObjectDataSourceFilteringEventArgs.cs
- PersonalizationAdministration.cs
- SemanticAnalyzer.cs
- TagMapCollection.cs
- ButtonBase.cs
- UserPreferenceChangedEventArgs.cs
- InheritablePropertyChangeInfo.cs
- Point3D.cs
- AutomationPropertyInfo.cs
- SpellerStatusTable.cs
- UriTemplateDispatchFormatter.cs
- ClientFormsAuthenticationCredentials.cs
- HttpCachePolicy.cs
- AllMembershipCondition.cs
- XmlSchemaAny.cs
- RelationshipConverter.cs
- ImageCodecInfo.cs
- SvcMapFile.cs