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
- ResizeGrip.cs
- NameValuePermission.cs
- AutomationPropertyInfo.cs
- Stopwatch.cs
- SoapInteropTypes.cs
- UrlAuthorizationModule.cs
- HttpRawResponse.cs
- VideoDrawing.cs
- TypeListConverter.cs
- dataobject.cs
- XmlHierarchyData.cs
- ConstraintEnumerator.cs
- DomainLiteralReader.cs
- MouseOverProperty.cs
- GeneralTransform3DGroup.cs
- ParentUndoUnit.cs
- SafeNativeMethodsOther.cs
- InputEventArgs.cs
- DataFieldConverter.cs
- CurrentChangingEventArgs.cs
- DataServiceStreamResponse.cs
- GetReadStreamResult.cs
- CodeSubDirectory.cs
- CompositeActivityTypeDescriptor.cs
- SiteMapNodeCollection.cs
- MaterialGroup.cs
- ScriptModule.cs
- CommandID.cs
- EpmSyndicationContentSerializer.cs
- WindowsUpDown.cs
- AvTrace.cs
- BitmapSource.cs
- AttachedPropertyBrowsableAttribute.cs
- UriSection.cs
- WebHeaderCollection.cs
- InkPresenter.cs
- SpStreamWrapper.cs
- Unit.cs
- ConstraintConverter.cs
- ConcurrentBag.cs
- ControlUtil.cs
- DelayDesigner.cs
- XmlDataSourceView.cs
- ValidationError.cs
- Emitter.cs
- SystemUnicastIPAddressInformation.cs
- RSAPKCS1SignatureDeformatter.cs
- ObjectDisposedException.cs
- FrameworkReadOnlyPropertyMetadata.cs
- LoginCancelEventArgs.cs
- WebPartTransformerAttribute.cs
- ResourceExpressionBuilder.cs
- DoubleCollectionValueSerializer.cs
- Page.cs
- BorderGapMaskConverter.cs
- BitmapEncoder.cs
- ProfileProvider.cs
- QueryableDataSourceView.cs
- CodeDOMUtility.cs
- SqlServices.cs
- XmlSchemaValidationException.cs
- Thickness.cs
- DbUpdateCommandTree.cs
- TypeSystemProvider.cs
- ObjectStateEntryDbDataRecord.cs
- ValueQuery.cs
- ThaiBuddhistCalendar.cs
- CheckBox.cs
- X509Certificate2Collection.cs
- MissingMemberException.cs
- SQLRoleProvider.cs
- EditorBrowsableAttribute.cs
- ColumnWidthChangedEvent.cs
- TextSpan.cs
- ToolStripSplitButton.cs
- KeyValuePair.cs
- CharacterMetrics.cs
- Int32Storage.cs
- SettingsContext.cs
- DebugView.cs
- ClientProtocol.cs
- DBDataPermissionAttribute.cs
- ClientCredentialsSecurityTokenManager.cs
- GeometryConverter.cs
- SafeProcessHandle.cs
- ISSmlParser.cs
- StaticExtension.cs
- SamlSerializer.cs
- Calendar.cs
- ChannelManagerHelpers.cs
- XmlObjectSerializerWriteContextComplex.cs
- PathSegmentCollection.cs
- MeshGeometry3D.cs
- FactoryRecord.cs
- TypeValidationEventArgs.cs
- _BaseOverlappedAsyncResult.cs
- WebPartZoneAutoFormat.cs
- WorkflowOwnershipException.cs
- Asn1IntegerConverter.cs
- RepeatBehaviorConverter.cs