Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Tokens / SamlNameIdentifierClaimResource.cs / 1305376 / SamlNameIdentifierClaimResource.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Text; using System.Runtime.Serialization; namespace System.IdentityModel.Tokens { [DataContract] public class SamlNameIdentifierClaimResource { [DataMember] string nameQualifier; [DataMember] string format; [DataMember] string name; [OnDeserialized] void OnDeserialized(StreamingContext ctx) { if (String.IsNullOrEmpty(this.name)) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("name"); } public SamlNameIdentifierClaimResource(string name, string nameQualifier, string format) { if (String.IsNullOrEmpty(name)) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("name"); this.name = name; this.nameQualifier = nameQualifier; this.format = format; } public string NameQualifier { get { return this.nameQualifier; } } public string Format { get { return this.format; } } public string Name { get { return this.name; } } public override bool Equals(object obj) { if (obj == null) return false; if (ReferenceEquals(this, obj)) return true; SamlNameIdentifierClaimResource rhs = obj as SamlNameIdentifierClaimResource; if (rhs == null) return false; return ((this.nameQualifier == rhs.nameQualifier) && (this.format == rhs.format) && (this.name == rhs.name)); } public override int GetHashCode() { return this.name.GetHashCode(); } } } // 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
- DecoderNLS.cs
- SynchronizationScope.cs
- UrlAuthFailureHandler.cs
- ToolStripOverflowButton.cs
- PassportAuthenticationEventArgs.cs
- CookieParameter.cs
- Brush.cs
- UriTemplateTable.cs
- IconEditor.cs
- InvokeGenerator.cs
- WebAdminConfigurationHelper.cs
- PersonalizationProviderHelper.cs
- ParserHooks.cs
- SafeRightsManagementPubHandle.cs
- ApplicationSecurityInfo.cs
- SpecialNameAttribute.cs
- NodeFunctions.cs
- FileDataSourceCache.cs
- MiniCustomAttributeInfo.cs
- Span.cs
- ToolStripScrollButton.cs
- MultiBinding.cs
- AttributeCollection.cs
- DataGridColumnCollection.cs
- AssertFilter.cs
- BinaryObjectReader.cs
- ParameterBuilder.cs
- EditableRegion.cs
- CompilationUtil.cs
- OutputCacheProfileCollection.cs
- CqlParser.cs
- PromptBuilder.cs
- ProcessHostMapPath.cs
- XmlName.cs
- _Events.cs
- ContentWrapperAttribute.cs
- ConfigurationLocationCollection.cs
- XmlEntity.cs
- ObjectPersistData.cs
- Model3D.cs
- PasswordTextNavigator.cs
- BinaryParser.cs
- WpfXamlMember.cs
- ExitEventArgs.cs
- PageThemeBuildProvider.cs
- PanningMessageFilter.cs
- PolicyStatement.cs
- TimeManager.cs
- ScrollBar.cs
- EdmScalarPropertyAttribute.cs
- StringAnimationBase.cs
- NamespaceList.cs
- BufferedStream.cs
- ClientCultureInfo.cs
- Byte.cs
- KnowledgeBase.cs
- RelationshipEntry.cs
- NegotiationTokenAuthenticatorState.cs
- Helper.cs
- DirectoryGroupQuery.cs
- TextParagraphCache.cs
- DataGridPageChangedEventArgs.cs
- Table.cs
- BorderGapMaskConverter.cs
- BufferedWebEventProvider.cs
- X509UI.cs
- QilScopedVisitor.cs
- CompositeScriptReference.cs
- DataGridViewColumnEventArgs.cs
- CannotUnloadAppDomainException.cs
- NameTable.cs
- SamlSecurityToken.cs
- WebPartConnection.cs
- MaskedTextProvider.cs
- BuildProviderCollection.cs
- BatchParser.cs
- DiffuseMaterial.cs
- ICspAsymmetricAlgorithm.cs
- PageFunction.cs
- GlobalAllocSafeHandle.cs
- AffineTransform3D.cs
- WebControl.cs
- DriveInfo.cs
- While.cs
- WorkflowInstanceContextProvider.cs
- __Filters.cs
- EventToken.cs
- TypePropertyEditor.cs
- FixedSchema.cs
- PropertyItem.cs
- TextParaClient.cs
- Events.cs
- CodeVariableReferenceExpression.cs
- ResourceExpression.cs
- ComboBoxAutomationPeer.cs
- ShapingWorkspace.cs
- ForAllOperator.cs
- MetadataArtifactLoaderComposite.cs
- ConsoleKeyInfo.cs
- CookieParameter.cs