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
- HtmlEncodedRawTextWriter.cs
- SoapIncludeAttribute.cs
- UrlPath.cs
- XmlStringTable.cs
- DecodeHelper.cs
- CheckBoxField.cs
- WebPartZoneBase.cs
- ListItemParagraph.cs
- dsa.cs
- DataGridCell.cs
- DeploymentSection.cs
- UserNameServiceElement.cs
- SpeechAudioFormatInfo.cs
- Material.cs
- ItemCollection.cs
- IntSecurity.cs
- PageThemeParser.cs
- XmlReflectionImporter.cs
- NewArrayExpression.cs
- Literal.cs
- shaperfactoryquerycacheentry.cs
- HashCryptoHandle.cs
- TrustManager.cs
- ShaderEffect.cs
- ContextProperty.cs
- TypeConverterHelper.cs
- SHA1CryptoServiceProvider.cs
- TypeForwardedToAttribute.cs
- WeakReferenceKey.cs
- ConnectionConsumerAttribute.cs
- CatalogPartChrome.cs
- DES.cs
- XmlILConstructAnalyzer.cs
- WebPartEditorApplyVerb.cs
- DataListItem.cs
- SendMailErrorEventArgs.cs
- SoapAttributeOverrides.cs
- StylusButtonCollection.cs
- AttachmentCollection.cs
- ByeOperationCD1AsyncResult.cs
- ListViewEditEventArgs.cs
- ConfigsHelper.cs
- TemplateBaseAction.cs
- SmiEventSink.cs
- ContainerCodeDomSerializer.cs
- ColorInterpolationModeValidation.cs
- DataListCommandEventArgs.cs
- GradientStop.cs
- X509CertificateCollection.cs
- InvokeMethodActivity.cs
- WizardPanel.cs
- Stream.cs
- RepeatBehaviorConverter.cs
- CounterCreationDataCollection.cs
- ContourSegment.cs
- ClearTypeHintValidation.cs
- Unit.cs
- webproxy.cs
- SQLStringStorage.cs
- CompressionTransform.cs
- Parameter.cs
- HtmlControlPersistable.cs
- CompilerState.cs
- EncoderExceptionFallback.cs
- ImageIndexConverter.cs
- RandomNumberGenerator.cs
- ExpressionVisitor.cs
- LinkClickEvent.cs
- MessageSecurityOverMsmq.cs
- XmlDocumentType.cs
- DispatchOperationRuntime.cs
- FlowchartDesignerCommands.cs
- IDispatchConstantAttribute.cs
- OptionUsage.cs
- Overlapped.cs
- BinaryCommonClasses.cs
- GridViewColumnHeaderAutomationPeer.cs
- MatrixTransform.cs
- StorageMappingItemCollection.cs
- XmlArrayItemAttribute.cs
- ListControl.cs
- DesignerForm.cs
- NameValueSectionHandler.cs
- ControlCommandSet.cs
- SchemeSettingElementCollection.cs
- ScrollData.cs
- DelegatedStream.cs
- FloaterBaseParaClient.cs
- SoapClientMessage.cs
- SQLGuidStorage.cs
- ParserHooks.cs
- RequestQueryParser.cs
- CodeIterationStatement.cs
- RunInstallerAttribute.cs
- ControlEvent.cs
- CanExecuteRoutedEventArgs.cs
- PrePostDescendentsWalker.cs
- ChangesetResponse.cs
- WeakReferenceKey.cs
- BasePattern.cs