Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NetWebProxyFinder.cs
- DependencyPropertyValueSerializer.cs
- EncodingTable.cs
- XslAstAnalyzer.cs
- GlyphTypeface.cs
- TableLayoutPanel.cs
- ContainerControl.cs
- AuthenticationConfig.cs
- DispatchChannelSink.cs
- StructuralCache.cs
- RepeaterItemEventArgs.cs
- DoubleAnimationBase.cs
- EdmPropertyAttribute.cs
- FlowchartDesigner.xaml.cs
- TextOptions.cs
- ResourcePermissionBase.cs
- OleDbPermission.cs
- CodeAccessPermission.cs
- OdbcConnectionHandle.cs
- ThreadPool.cs
- JsonUriDataContract.cs
- SchemaImporterExtension.cs
- _LocalDataStoreMgr.cs
- CornerRadiusConverter.cs
- figurelength.cs
- SchemaDeclBase.cs
- TextFormatterContext.cs
- SqlException.cs
- QueryStringConverter.cs
- DialogResultConverter.cs
- ButtonStandardAdapter.cs
- CancelRequestedRecord.cs
- ImmComposition.cs
- ClipboardProcessor.cs
- GroupPartitionExpr.cs
- NetworkStream.cs
- DataServiceConfiguration.cs
- Pen.cs
- DbSetClause.cs
- SqlSelectClauseBuilder.cs
- DataObject.cs
- AuthenticationConfig.cs
- DataFieldCollectionEditor.cs
- DecoderBestFitFallback.cs
- PersonalizationStateQuery.cs
- PinnedBufferMemoryStream.cs
- ResourceReader.cs
- FileUpload.cs
- DynamicRendererThreadManager.cs
- XmlProcessingInstruction.cs
- FileLoadException.cs
- SqlDependencyUtils.cs
- ToolStripControlHost.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- DbRetry.cs
- CorrelationManager.cs
- DBAsyncResult.cs
- MsmqInputChannelListenerBase.cs
- ThreadAttributes.cs
- XmlWellformedWriter.cs
- SettingsSavedEventArgs.cs
- StorageInfo.cs
- TypeForwardedToAttribute.cs
- InteropBitmapSource.cs
- ScriptingSectionGroup.cs
- BindingNavigatorDesigner.cs
- DbMetaDataCollectionNames.cs
- RoutedEventHandlerInfo.cs
- InputLanguageCollection.cs
- AnimationStorage.cs
- MatrixTransform.cs
- OptimizerPatterns.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- DocumentSchemaValidator.cs
- HtmlShim.cs
- WebPermission.cs
- BindableAttribute.cs
- ApplicationFileCodeDomTreeGenerator.cs
- CompileXomlTask.cs
- XmlIncludeAttribute.cs
- OverlappedAsyncResult.cs
- UriParserTemplates.cs
- PrivilegeNotHeldException.cs
- CodeTypeReference.cs
- MainMenu.cs
- CompilationUtil.cs
- LongCountAggregationOperator.cs
- StateFinalizationActivity.cs
- ManagedWndProcTracker.cs
- IDReferencePropertyAttribute.cs
- CompressEmulationStream.cs
- SqlStream.cs
- _HeaderInfo.cs
- NeedSkipTokenVisitor.cs
- EFColumnProvider.cs
- DesignerCategoryAttribute.cs
- OleDbError.cs
- _SpnDictionary.cs
- TextContainerChangedEventArgs.cs
- MergeFailedEvent.cs