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
- AssociationEndMember.cs
- AssemblyEvidenceFactory.cs
- TreeViewDataItemAutomationPeer.cs
- CounterCreationDataConverter.cs
- GeometryValueSerializer.cs
- RemoteWebConfigurationHostServer.cs
- CreateUserWizardDesigner.cs
- SystemNetworkInterface.cs
- SecurityKeyIdentifierClause.cs
- TraceSwitch.cs
- DataTablePropertyDescriptor.cs
- CurrencyWrapper.cs
- MetabaseServerConfig.cs
- TemplateBindingExtensionConverter.cs
- SemaphoreFullException.cs
- SHA1Managed.cs
- Task.cs
- ProviderCommandInfoUtils.cs
- AssemblyBuilderData.cs
- XmlSiteMapProvider.cs
- UserValidatedEventArgs.cs
- CopyAction.cs
- Int64AnimationBase.cs
- ChannelSinkStacks.cs
- TextBreakpoint.cs
- Suspend.cs
- DocobjHost.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- WebPartAuthorizationEventArgs.cs
- TimeBoundedCache.cs
- CookieProtection.cs
- IdentityModelStringsVersion1.cs
- SecurityTokenTypes.cs
- WithStatement.cs
- CompilationPass2Task.cs
- PrePostDescendentsWalker.cs
- ReadOnlyPropertyMetadata.cs
- ModuleElement.cs
- ReadOnlyCollectionBase.cs
- ContextMenuStripGroupCollection.cs
- PageAdapter.cs
- PermissionRequestEvidence.cs
- NameValuePermission.cs
- LayoutDump.cs
- DrawingGroupDrawingContext.cs
- DataServiceQueryProvider.cs
- NetworkStream.cs
- SqlBooleanizer.cs
- Overlapped.cs
- SplineQuaternionKeyFrame.cs
- C14NUtil.cs
- ArgumentOutOfRangeException.cs
- QilName.cs
- UnsafeNativeMethods.cs
- XmlWriterTraceListener.cs
- CustomAttributeSerializer.cs
- DoubleLinkListEnumerator.cs
- DataGridViewAdvancedBorderStyle.cs
- SchemaAttDef.cs
- GroupStyle.cs
- DesignerVerbCollection.cs
- RuleAttributes.cs
- CdpEqualityComparer.cs
- CustomBinding.cs
- GlobalProxySelection.cs
- SectionRecord.cs
- Token.cs
- ExpressionBindingCollection.cs
- WebCategoryAttribute.cs
- RIPEMD160Managed.cs
- SignatureConfirmationElement.cs
- ByteStorage.cs
- ProfessionalColorTable.cs
- OdbcTransaction.cs
- PasswordDeriveBytes.cs
- TypeConstant.cs
- NetSectionGroup.cs
- TagPrefixInfo.cs
- Config.cs
- NotCondition.cs
- CrossContextChannel.cs
- AliasGenerator.cs
- InProcStateClientManager.cs
- ValidationErrorCollection.cs
- AnonymousIdentificationModule.cs
- ScrollBar.cs
- HTMLTextWriter.cs
- HGlobalSafeHandle.cs
- ToolStripDropDownMenu.cs
- ProfilePropertyMetadata.cs
- Debugger.cs
- StyleSheet.cs
- WebPartVerbCollection.cs
- DataTableMappingCollection.cs
- ChannelCredentials.cs
- SHA1CryptoServiceProvider.cs
- SqlDeflator.cs
- Privilege.cs
- CompilerCollection.cs
- FastEncoder.cs