Code:
/ 4.0 / 4.0 / 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.
//------------------------------------------------------------------------------
// 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
- AbstractExpressions.cs
- DataServiceProviderMethods.cs
- DirectoryGroupQuery.cs
- TypeNameConverter.cs
- PolyLineSegmentFigureLogic.cs
- NTAccount.cs
- UdpUtility.cs
- HealthMonitoringSectionHelper.cs
- WorkerRequest.cs
- XmlHierarchicalEnumerable.cs
- VisualBrush.cs
- DataBinder.cs
- XmlSchemaAny.cs
- DataBindingCollection.cs
- SingleAnimationBase.cs
- MailMessage.cs
- ReceiveCompletedEventArgs.cs
- DataGridViewImageColumn.cs
- Pool.cs
- WebPartZoneCollection.cs
- TableAutomationPeer.cs
- CachedPathData.cs
- MemberAssignmentAnalysis.cs
- SettingsPropertyWrongTypeException.cs
- AssociationTypeEmitter.cs
- XomlCompiler.cs
- StorageSetMapping.cs
- EventBuilder.cs
- QilList.cs
- Profiler.cs
- ListView.cs
- EnumerableRowCollectionExtensions.cs
- Viewport3DVisual.cs
- HttpWriter.cs
- ToolStripOverflowButton.cs
- WebPartDisplayModeEventArgs.cs
- ToolStripContentPanelRenderEventArgs.cs
- HelloMessageCD1.cs
- Events.cs
- SafeThreadHandle.cs
- MailWriter.cs
- DialogWindow.cs
- MenuBase.cs
- HtmlHead.cs
- QilGeneratorEnv.cs
- Symbol.cs
- XmlEnumAttribute.cs
- __ComObject.cs
- XLinq.cs
- InternalPolicyElement.cs
- DataControlPagerLinkButton.cs
- ProcessInfo.cs
- SqlFileStream.cs
- ReachDocumentReferenceSerializer.cs
- FixedSOMTextRun.cs
- GeneralTransform.cs
- ColumnResult.cs
- BulletedListEventArgs.cs
- CheckedPointers.cs
- MDIWindowDialog.cs
- initElementDictionary.cs
- MatrixValueSerializer.cs
- SpellerError.cs
- AnnotationAdorner.cs
- BitmapSource.cs
- ObfuscationAttribute.cs
- PixelFormat.cs
- LOSFormatter.cs
- FileDialog.cs
- COM2PropertyDescriptor.cs
- TransformGroup.cs
- DynamicRendererThreadManager.cs
- TextAutomationPeer.cs
- RepeatEnumerable.cs
- hresults.cs
- HtmlTableCellCollection.cs
- DiscardableAttribute.cs
- oledbconnectionstring.cs
- ProfileSection.cs
- RelationHandler.cs
- EntityProxyFactory.cs
- ValueTable.cs
- BindingExpressionBase.cs
- PrimitiveType.cs
- PathNode.cs
- DataShape.cs
- ProxyHelper.cs
- TypeViewSchema.cs
- SchemaCollectionPreprocessor.cs
- OdbcHandle.cs
- PermissionListSet.cs
- EdmPropertyAttribute.cs
- SignatureToken.cs
- ValidationHelper.cs
- DataTableMappingCollection.cs
- IpcManager.cs
- PathFigure.cs
- DataObjectFieldAttribute.cs
- ProcessThread.cs
- DataGridColumnCollectionEditor.cs