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
- NetCodeGroup.cs
- DispatchChannelSink.cs
- CollectionBuilder.cs
- HtmlTableCellCollection.cs
- IPGlobalProperties.cs
- ErrorHandler.cs
- Point3D.cs
- TreeNode.cs
- TypeSource.cs
- ElementProxy.cs
- RenamedEventArgs.cs
- FlowDocumentPage.cs
- UnsafeNativeMethodsTablet.cs
- DesignerActionPanel.cs
- BaseTemplateParser.cs
- Lasso.cs
- XmlSchemaCompilationSettings.cs
- PropertyRef.cs
- SoapCodeExporter.cs
- unitconverter.cs
- GeneralTransform3DTo2DTo3D.cs
- CryptoApi.cs
- ColumnHeader.cs
- DesignerAttribute.cs
- ControlPropertyNameConverter.cs
- ToolboxDataAttribute.cs
- PersonalizationStateInfoCollection.cs
- PointUtil.cs
- Form.cs
- ErrorEventArgs.cs
- ExceptionValidationRule.cs
- EventDescriptor.cs
- XmlSerializerSection.cs
- SmtpNtlmAuthenticationModule.cs
- XmlTypeAttribute.cs
- SplayTreeNode.cs
- PageThemeParser.cs
- AmbientValueAttribute.cs
- BitmapEffectInputData.cs
- QuaternionAnimationUsingKeyFrames.cs
- PathFigure.cs
- ValidatedMobileControlConverter.cs
- ColumnCollectionEditor.cs
- RayMeshGeometry3DHitTestResult.cs
- sqlstateclientmanager.cs
- TextCompositionEventArgs.cs
- __FastResourceComparer.cs
- BrushConverter.cs
- TypeBuilder.cs
- WorkflowTraceTransfer.cs
- PageTheme.cs
- SchemaImporterExtensionElementCollection.cs
- TrackBar.cs
- AbandonedMutexException.cs
- MinMaxParagraphWidth.cs
- FigureParaClient.cs
- DataGridViewSelectedColumnCollection.cs
- Content.cs
- TextElement.cs
- CharacterMetricsDictionary.cs
- OpCodes.cs
- SolidBrush.cs
- FormsAuthenticationUser.cs
- Section.cs
- SocketAddress.cs
- DynamicQueryableWrapper.cs
- MachineKeySection.cs
- WizardPanelChangingEventArgs.cs
- WorkflowMessageEventHandler.cs
- FixedSOMLineCollection.cs
- TextRangeAdaptor.cs
- SimpleHandlerBuildProvider.cs
- ContractNamespaceAttribute.cs
- LinqDataSourceDisposeEventArgs.cs
- ChoiceConverter.cs
- PathStreamGeometryContext.cs
- BitStack.cs
- NameSpaceExtractor.cs
- Deserializer.cs
- AuthenticationModulesSection.cs
- ThumbButtonInfoCollection.cs
- FilterQueryOptionExpression.cs
- EventToken.cs
- TaiwanLunisolarCalendar.cs
- NetStream.cs
- MD5CryptoServiceProvider.cs
- SoapCommonClasses.cs
- CacheMemory.cs
- CodeTypeOfExpression.cs
- GroupItem.cs
- KnownBoxes.cs
- PersonalizationEntry.cs
- AuthenticationConfig.cs
- MonitorWrapper.cs
- RegexCode.cs
- ExpandedWrapper.cs
- ListViewSelectEventArgs.cs
- SharedConnectionWorkflowTransactionService.cs
- CultureTable.cs
- InstanceData.cs