Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XPathLexer.cs
- ProcessHost.cs
- ThreadExceptionDialog.cs
- BindingManagerDataErrorEventArgs.cs
- Vector3DKeyFrameCollection.cs
- PageTheme.cs
- WindowsListViewScroll.cs
- KeyValueSerializer.cs
- PropertyMetadata.cs
- sqlpipe.cs
- XmlElementList.cs
- GridViewSortEventArgs.cs
- XhtmlTextWriter.cs
- MethodImplAttribute.cs
- XPathConvert.cs
- XmlCountingReader.cs
- MessageBox.cs
- TraceContext.cs
- QuadraticBezierSegment.cs
- WbemProvider.cs
- WebReferenceCollection.cs
- FollowerQueueCreator.cs
- MemberPath.cs
- ByteRangeDownloader.cs
- SynchronizedInputAdaptor.cs
- FunctionDescription.cs
- ScriptManagerProxy.cs
- XhtmlMobileTextWriter.cs
- HistoryEventArgs.cs
- SineEase.cs
- InternalConfigConfigurationFactory.cs
- DurableDispatcherAddressingFault.cs
- BooleanSwitch.cs
- AssemblyInfo.cs
- DataGridSortCommandEventArgs.cs
- SplineKeyFrames.cs
- SmiRecordBuffer.cs
- dbenumerator.cs
- DetailsViewInsertedEventArgs.cs
- FixedSOMImage.cs
- DataErrorValidationRule.cs
- PtsPage.cs
- Property.cs
- DataGridPagerStyle.cs
- SqlUDTStorage.cs
- ParentQuery.cs
- CodeMemberMethod.cs
- StrokeSerializer.cs
- OracleEncoding.cs
- XPathNavigator.cs
- FrameworkName.cs
- ThreadExceptionDialog.cs
- StylusPointPropertyInfo.cs
- MemberExpressionHelper.cs
- ColumnHeaderCollectionEditor.cs
- XmlText.cs
- NotifyIcon.cs
- XmlElementAttributes.cs
- CngProvider.cs
- MenuScrollingVisibilityConverter.cs
- RuntimeConfigLKG.cs
- ExpressionList.cs
- HttpErrorTraceRecord.cs
- Propagator.ExtentPlaceholderCreator.cs
- ScriptReference.cs
- XmlAutoDetectWriter.cs
- ChildChangedEventArgs.cs
- ProxyWebPartConnectionCollection.cs
- EndpointInstanceProvider.cs
- TypeBuilderInstantiation.cs
- SqlDataReaderSmi.cs
- ConsoleKeyInfo.cs
- DBSqlParserTableCollection.cs
- CompensationHandlingFilter.cs
- TaskHelper.cs
- Registry.cs
- DBSchemaTable.cs
- MimeTypePropertyAttribute.cs
- Header.cs
- PathStreamGeometryContext.cs
- TextDecorationCollection.cs
- TreeNodeBindingCollection.cs
- PartialTrustVisibleAssemblyCollection.cs
- SessionSwitchEventArgs.cs
- SafePEFileHandle.cs
- VScrollBar.cs
- TwoPhaseCommit.cs
- Polyline.cs
- FileSecurity.cs
- XslCompiledTransform.cs
- CompilerState.cs
- RequestQueryParser.cs
- CategoriesDocument.cs
- DataListDesigner.cs
- SignatureToken.cs
- DesignObjectWrapper.cs
- PublishLicense.cs
- PermissionToken.cs
- ListBoxItemAutomationPeer.cs
- ToolStripScrollButton.cs