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
- InternalRelationshipCollection.cs
- UnknownWrapper.cs
- FocusWithinProperty.cs
- UTF7Encoding.cs
- GZipUtils.cs
- ObjectView.cs
- DoubleIndependentAnimationStorage.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- ResXFileRef.cs
- GridLength.cs
- CustomValidator.cs
- RuleRefElement.cs
- WebPartManagerInternals.cs
- OdbcError.cs
- Operand.cs
- ForEachAction.cs
- TemporaryBitmapFile.cs
- FontSource.cs
- GeneralTransform3DGroup.cs
- XmlnsDefinitionAttribute.cs
- ConnectionOrientedTransportChannelFactory.cs
- DataViewSettingCollection.cs
- FormsAuthenticationConfiguration.cs
- NavigatingCancelEventArgs.cs
- ApplicationInfo.cs
- SkewTransform.cs
- FontStyleConverter.cs
- DesignerHelpers.cs
- SecurityManager.cs
- QuaternionValueSerializer.cs
- compensatingcollection.cs
- MulticastOption.cs
- StateWorkerRequest.cs
- DecimalConverter.cs
- Sentence.cs
- ExtensibleSyndicationObject.cs
- HttpListenerPrefixCollection.cs
- DeferredElementTreeState.cs
- CachingHintValidation.cs
- IconBitmapDecoder.cs
- ImageDrawing.cs
- LocalizableAttribute.cs
- _ListenerRequestStream.cs
- XmlAttributes.cs
- HttpServerVarsCollection.cs
- WindowInteropHelper.cs
- PixelFormat.cs
- SimpleHandlerFactory.cs
- Decorator.cs
- ListBindingHelper.cs
- EntityViewGenerationAttribute.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- SecUtil.cs
- PasswordDeriveBytes.cs
- DataRowCollection.cs
- MissingManifestResourceException.cs
- DoubleConverter.cs
- CallContext.cs
- SpoolingTask.cs
- OutArgumentConverter.cs
- RequestBringIntoViewEventArgs.cs
- ComboBoxRenderer.cs
- WindowsGraphics.cs
- TrackingExtract.cs
- GenericUriParser.cs
- DesignerDataTable.cs
- AsymmetricAlgorithm.cs
- DocumentSchemaValidator.cs
- GetChildSubtree.cs
- XmlAttributes.cs
- HeaderCollection.cs
- WindowShowOrOpenTracker.cs
- OdbcRowUpdatingEvent.cs
- CompatibleComparer.cs
- DrawingImage.cs
- TableLayoutStyle.cs
- CurrentChangingEventArgs.cs
- BorderGapMaskConverter.cs
- AccessKeyManager.cs
- RijndaelManagedTransform.cs
- DocumentSequenceHighlightLayer.cs
- ElementAtQueryOperator.cs
- AliasExpr.cs
- DbLambda.cs
- AnnotationComponentManager.cs
- DataGridToolTip.cs
- MediaScriptCommandRoutedEventArgs.cs
- IPAddress.cs
- RIPEMD160Managed.cs
- StoreContentChangedEventArgs.cs
- AppDomainShutdownMonitor.cs
- TemplateControlParser.cs
- GACMembershipCondition.cs
- PreProcessInputEventArgs.cs
- HwndSource.cs
- activationcontext.cs
- AttributeCollection.cs
- ApplicationActivator.cs
- CompressedStack.cs
- GridViewColumnCollection.cs