Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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(""); } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EntityStoreSchemaGenerator.cs
- Win32Native.cs
- StrokeSerializer.cs
- Tracking.cs
- MetadataArtifactLoaderComposite.cs
- SoapInteropTypes.cs
- XmlSchemas.cs
- XPathNodeList.cs
- TextBox.cs
- AncestorChangedEventArgs.cs
- Overlapped.cs
- TextRunCacheImp.cs
- IdentityNotMappedException.cs
- DateTimeOffsetConverter.cs
- PreProcessInputEventArgs.cs
- PropertyReferenceExtension.cs
- DoubleUtil.cs
- ContentElement.cs
- ApplicationFileParser.cs
- GroupQuery.cs
- AsymmetricSignatureFormatter.cs
- keycontainerpermission.cs
- Matrix3DConverter.cs
- XmlQueryCardinality.cs
- AnnotationAuthorChangedEventArgs.cs
- PageStatePersister.cs
- XPathItem.cs
- CompilerError.cs
- Rectangle.cs
- AnimatedTypeHelpers.cs
- PingReply.cs
- MemberPath.cs
- XmlReader.cs
- SurrogateDataContract.cs
- CompiledIdentityConstraint.cs
- ServiceNameElementCollection.cs
- SQLInt16.cs
- CodePageEncoding.cs
- TableLayoutPanel.cs
- SettingsAttributes.cs
- FilterableData.cs
- DataGridViewEditingControlShowingEventArgs.cs
- ObservableCollectionDefaultValueFactory.cs
- TreeViewTemplateSelector.cs
- DataSourceCache.cs
- DataGridAutoFormat.cs
- OpenTypeCommon.cs
- DispatcherEventArgs.cs
- UserControlCodeDomTreeGenerator.cs
- Font.cs
- SqlMultiplexer.cs
- ScriptResourceHandler.cs
- DataGridRowEventArgs.cs
- TextTreeNode.cs
- NativeObjectSecurity.cs
- XmlAttributeOverrides.cs
- SqlBuffer.cs
- InkCollectionBehavior.cs
- SiteMapHierarchicalDataSourceView.cs
- DrawingImage.cs
- PostBackOptions.cs
- LabelAutomationPeer.cs
- TypeDescriptor.cs
- RectConverter.cs
- mediaeventshelper.cs
- ScriptControl.cs
- UndoEngine.cs
- Dictionary.cs
- Pen.cs
- DebuggerAttributes.cs
- DrawItemEvent.cs
- AppSettingsReader.cs
- NumberFunctions.cs
- DrawingState.cs
- SqlProviderManifest.cs
- EntityReference.cs
- SQLByteStorage.cs
- RecognizedWordUnit.cs
- HtmlTitle.cs
- Region.cs
- SafeViewOfFileHandle.cs
- EntitySqlQueryBuilder.cs
- SafeCertificateContext.cs
- SchemaNamespaceManager.cs
- XmlSerializerOperationFormatter.cs
- HtmlElement.cs
- ModelPerspective.cs
- SignatureToken.cs
- XPathEmptyIterator.cs
- BaseUriHelper.cs
- UnmanagedMarshal.cs
- _PooledStream.cs
- TextPointer.cs
- Image.cs
- Renderer.cs
- Win32PrintDialog.cs
- FocusChangedEventArgs.cs
- OdbcDataAdapter.cs
- ValidationHelper.cs
- SizeAnimationBase.cs