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
- GlobalizationSection.cs
- DefaultProxySection.cs
- MsmqDiagnostics.cs
- __Filters.cs
- ClientSettingsSection.cs
- FileUpload.cs
- DateTimeFormat.cs
- TextElementCollectionHelper.cs
- CodeConditionStatement.cs
- XmlDigitalSignatureProcessor.cs
- HttpProfileBase.cs
- StreamMarshaler.cs
- EntityDesignerDataSourceView.cs
- HandledEventArgs.cs
- CustomExpressionEventArgs.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- ModifierKeysConverter.cs
- SamlSecurityTokenAuthenticator.cs
- OutputCache.cs
- XhtmlBasicSelectionListAdapter.cs
- HandoffBehavior.cs
- KeyConverter.cs
- CodeSnippetCompileUnit.cs
- RenderOptions.cs
- TableItemProviderWrapper.cs
- ConfigXmlWhitespace.cs
- ReflectionUtil.cs
- SignedInfo.cs
- Quaternion.cs
- XmlIncludeAttribute.cs
- UInt16.cs
- DesignerToolboxInfo.cs
- FileAuthorizationModule.cs
- PreservationFileWriter.cs
- LineMetrics.cs
- SiteMapNodeCollection.cs
- Switch.cs
- DispatcherSynchronizationContext.cs
- PropertyValue.cs
- CheckoutException.cs
- XmlSchemaAnnotated.cs
- SetMemberBinder.cs
- Mouse.cs
- AutomationPropertyInfo.cs
- XmlSchemaSimpleTypeList.cs
- QuadraticBezierSegment.cs
- RegexCharClass.cs
- HelpEvent.cs
- ApplicationDirectory.cs
- RegexMatchCollection.cs
- StyleModeStack.cs
- TreeNodeEventArgs.cs
- InputMethodStateTypeInfo.cs
- TextEditorLists.cs
- HybridDictionary.cs
- Environment.cs
- ConstraintStruct.cs
- InputElement.cs
- LinkButton.cs
- ToolStripArrowRenderEventArgs.cs
- DataSourceControlBuilder.cs
- MetadataPropertyCollection.cs
- HttpCapabilitiesBase.cs
- ContextStaticAttribute.cs
- MergePropertyDescriptor.cs
- TypeDescriptor.cs
- EmissiveMaterial.cs
- WSTrustDec2005.cs
- LinearGradientBrush.cs
- ProfileBuildProvider.cs
- VolatileEnlistmentState.cs
- CrossSiteScriptingValidation.cs
- ControlValuePropertyAttribute.cs
- EventlogProvider.cs
- cryptoapiTransform.cs
- HostSecurityManager.cs
- ComEventsMethod.cs
- BigInt.cs
- SAPIEngineTypes.cs
- TimelineCollection.cs
- HMACSHA256.cs
- CompilerError.cs
- UnauthorizedAccessException.cs
- MappingSource.cs
- HitTestResult.cs
- Encoding.cs
- SymbolTable.cs
- TableProviderWrapper.cs
- Point3DCollection.cs
- DesignerCategoryAttribute.cs
- Util.cs
- SoapExtension.cs
- RawStylusInputCustomData.cs
- GroupQuery.cs
- StreamGeometryContext.cs
- TogglePattern.cs
- Converter.cs
- AnonymousIdentificationSection.cs
- RenderingBiasValidation.cs
- IssuedTokenServiceCredential.cs