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
- SharedDp.cs
- SpeechSynthesizer.cs
- DBConnection.cs
- HtmlShimManager.cs
- Token.cs
- CompatibleIComparer.cs
- GeneralTransformCollection.cs
- AccessorTable.cs
- WorkflowViewStateService.cs
- PageClientProxyGenerator.cs
- MetadataItemEmitter.cs
- DataGridViewToolTip.cs
- ObjectDataSourceStatusEventArgs.cs
- TrackingRecord.cs
- TextFindEngine.cs
- MessageSmuggler.cs
- WorkingDirectoryEditor.cs
- FontStyle.cs
- AppDomainCompilerProxy.cs
- XmlWellformedWriter.cs
- ConfigXmlAttribute.cs
- HelpEvent.cs
- SqlBulkCopyColumnMapping.cs
- XamlGridLengthSerializer.cs
- ExpanderAutomationPeer.cs
- SystemUdpStatistics.cs
- ConstraintManager.cs
- ScrollProperties.cs
- SemaphoreSlim.cs
- ExpressionBindingCollection.cs
- HierarchicalDataBoundControlAdapter.cs
- MapPathBasedVirtualPathProvider.cs
- UTF7Encoding.cs
- SchemaTableOptionalColumn.cs
- SecureUICommand.cs
- Attributes.cs
- PropertiesTab.cs
- TransformationRules.cs
- HttpRequest.cs
- DefaultAssemblyResolver.cs
- BitFlagsGenerator.cs
- XDeferredAxisSource.cs
- formatstringdialog.cs
- GenericTypeParameterBuilder.cs
- TrustManagerMoreInformation.cs
- RepeatButtonAutomationPeer.cs
- ThreadStateException.cs
- ContentTextAutomationPeer.cs
- VideoDrawing.cs
- CardSpaceSelector.cs
- XsltLibrary.cs
- EnumDataContract.cs
- MultiTrigger.cs
- PageContentAsyncResult.cs
- GridViewSelectEventArgs.cs
- CompressedStack.cs
- TraceLog.cs
- StylusPointProperty.cs
- SerializationInfoEnumerator.cs
- ProfileProvider.cs
- Geometry3D.cs
- HTMLTextWriter.cs
- SubMenuStyleCollectionEditor.cs
- KeyInstance.cs
- ApplicationBuildProvider.cs
- SiteOfOriginPart.cs
- RenderCapability.cs
- TraceLevelStore.cs
- OrderedEnumerableRowCollection.cs
- TextPattern.cs
- Part.cs
- BoundingRectTracker.cs
- DataGridViewCellMouseEventArgs.cs
- AuthenticateEventArgs.cs
- PermissionAttributes.cs
- DataControlField.cs
- RegisteredHiddenField.cs
- TrustSection.cs
- QueryExtender.cs
- NativeMethods.cs
- CompilerScope.cs
- CounterCreationData.cs
- TextureBrush.cs
- SerializationInfoEnumerator.cs
- MenuItemCollectionEditor.cs
- WebRequestModulesSection.cs
- SubpageParaClient.cs
- StrongNameKeyPair.cs
- SqlMetaData.cs
- InvalidEnumArgumentException.cs
- ScriptResourceAttribute.cs
- CipherData.cs
- GridView.cs
- DoubleLinkListEnumerator.cs
- DatagridviewDisplayedBandsData.cs
- GlyphRun.cs
- ToolboxComponentsCreatedEventArgs.cs
- HwndStylusInputProvider.cs
- CompilationUtil.cs
- ConfigurationValidatorAttribute.cs