Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Tokens / SamlNameIdentifierClaimResource.cs / 1 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ValidateNames.cs
- UTF7Encoding.cs
- CorrelationToken.cs
- FixedTextSelectionProcessor.cs
- LabelTarget.cs
- SmiEventSink.cs
- Attribute.cs
- ServiceDescriptions.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- NonVisualControlAttribute.cs
- FormsIdentity.cs
- ValidatorUtils.cs
- Compiler.cs
- DragDropHelper.cs
- CroppedBitmap.cs
- QuadraticBezierSegment.cs
- FormClosedEvent.cs
- XmlEnumAttribute.cs
- ResourceDisplayNameAttribute.cs
- DataGridViewIntLinkedList.cs
- _NegotiateClient.cs
- WrappedReader.cs
- VisualBasicSettingsHandler.cs
- RawMouseInputReport.cs
- DataSourceCache.cs
- DataControlFieldCell.cs
- MultiBindingExpression.cs
- RoutedCommand.cs
- ViewGenResults.cs
- HttpResponseMessageProperty.cs
- RsaSecurityKey.cs
- BaseCodePageEncoding.cs
- GridViewSelectEventArgs.cs
- ValidationError.cs
- ChangeDirector.cs
- AutomationElement.cs
- RelatedCurrencyManager.cs
- ColorContextHelper.cs
- loginstatus.cs
- TdsParserStaticMethods.cs
- Memoizer.cs
- RequestCache.cs
- XmlNodeReader.cs
- RSAPKCS1KeyExchangeFormatter.cs
- LowerCaseStringConverter.cs
- ScriptControlDescriptor.cs
- RangeContentEnumerator.cs
- X509CertificateRecipientServiceCredential.cs
- DecoderReplacementFallback.cs
- querybuilder.cs
- WebPartHelpVerb.cs
- SecurityKeyType.cs
- WebBrowserContainer.cs
- HitTestDrawingContextWalker.cs
- CryptographicAttribute.cs
- InvalidOleVariantTypeException.cs
- StringToken.cs
- Trace.cs
- WhereaboutsReader.cs
- CryptoKeySecurity.cs
- UdpDiscoveryMessageFilter.cs
- ThreadStaticAttribute.cs
- ProxyOperationRuntime.cs
- ClientEndpointLoader.cs
- HttpCacheVaryByContentEncodings.cs
- CompletedAsyncResult.cs
- Component.cs
- FieldToken.cs
- AppDomainProtocolHandler.cs
- EnumType.cs
- EventMemberCodeDomSerializer.cs
- TimeZoneNotFoundException.cs
- NativeMethods.cs
- Point.cs
- Completion.cs
- X509SecurityToken.cs
- PixelFormats.cs
- FontDifferentiator.cs
- cache.cs
- CellRelation.cs
- AssemblyUtil.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ClassHandlersStore.cs
- InteropAutomationProvider.cs
- PointAnimation.cs
- QueryGenerator.cs
- OracleCommand.cs
- MetadataArtifactLoader.cs
- XmlQueryOutput.cs
- DynamicValidatorEventArgs.cs
- SlipBehavior.cs
- documentsequencetextpointer.cs
- PhonemeEventArgs.cs
- ColumnWidthChangingEvent.cs
- CharacterBuffer.cs
- CacheEntry.cs
- OleDbRowUpdatedEvent.cs
- AnnotationHelper.cs
- ConfigurationSchemaErrors.cs
- CallTemplateAction.cs