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
- StrokeDescriptor.cs
- ProtocolsSection.cs
- MethodImplAttribute.cs
- CaseStatement.cs
- XmlMemberMapping.cs
- ResourceWriter.cs
- BufferedGraphics.cs
- ProtocolElement.cs
- Native.cs
- DetailsViewRow.cs
- PasswordTextNavigator.cs
- SqlDependencyListener.cs
- BindingCompleteEventArgs.cs
- TypeNameHelper.cs
- Dynamic.cs
- TemplatedMailWebEventProvider.cs
- Registry.cs
- UxThemeWrapper.cs
- BStrWrapper.cs
- FieldBuilder.cs
- localization.cs
- Input.cs
- FolderLevelBuildProviderCollection.cs
- GridViewCancelEditEventArgs.cs
- WindowsFormsHostPropertyMap.cs
- UnsafePeerToPeerMethods.cs
- ConsoleKeyInfo.cs
- ToolBar.cs
- CqlLexerHelpers.cs
- HttpAsyncResult.cs
- CollectionBase.cs
- XmlSerializerNamespaces.cs
- LinqDataSourceHelper.cs
- Triangle.cs
- OciLobLocator.cs
- SQLDecimalStorage.cs
- SharedUtils.cs
- CommandConverter.cs
- MissingSatelliteAssemblyException.cs
- TextSerializer.cs
- ListMarkerSourceInfo.cs
- Point3DConverter.cs
- StylusPlugin.cs
- AuthStoreRoleProvider.cs
- IisTraceListener.cs
- DataProtectionSecurityStateEncoder.cs
- WebDisplayNameAttribute.cs
- Grammar.cs
- CapabilitiesAssignment.cs
- WebPartDescriptionCollection.cs
- TrueReadOnlyCollection.cs
- PackagePartCollection.cs
- AutomationElementCollection.cs
- WebConfigurationFileMap.cs
- ProcessInfo.cs
- updateconfighost.cs
- hresults.cs
- DataViewSetting.cs
- Margins.cs
- ResizeGrip.cs
- LayoutTable.cs
- EdmFunction.cs
- Normalization.cs
- RSACryptoServiceProvider.cs
- BamlVersionHeader.cs
- ExcCanonicalXml.cs
- FixedSOMLineCollection.cs
- PageThemeParser.cs
- HtmlInputHidden.cs
- _NegoStream.cs
- WebEventTraceProvider.cs
- HashFinalRequest.cs
- CreateParams.cs
- BitmapDownload.cs
- DoubleLinkListEnumerator.cs
- SchemaTableColumn.cs
- NativeMethods.cs
- ProcessHostFactoryHelper.cs
- PathNode.cs
- DropShadowEffect.cs
- DocComment.cs
- XmlnsDictionary.cs
- HttpClientCertificate.cs
- CatalogPartChrome.cs
- InvalidWMPVersionException.cs
- FixedStringLookup.cs
- InlineCollection.cs
- DrawingServices.cs
- DataControlExtensions.cs
- NavigationProperty.cs
- Marshal.cs
- EndpointConfigContainer.cs
- GridViewRowPresenterBase.cs
- ReaderWriterLockSlim.cs
- MediaSystem.cs
- MILUtilities.cs
- Command.cs
- WebServiceFault.cs
- RegularExpressionValidator.cs
- ToolBar.cs