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
- ToolstripProfessionalRenderer.cs
- ApplicationServiceHelper.cs
- WebBrowserContainer.cs
- ExecutorLocksHeldException.cs
- TextBoxBase.cs
- AdCreatedEventArgs.cs
- FrameAutomationPeer.cs
- Interlocked.cs
- RuntimeHandles.cs
- CqlIdentifiers.cs
- BuildTopDownAttribute.cs
- MessageRpc.cs
- Stream.cs
- WizardForm.cs
- CodeAttributeDeclaration.cs
- _TransmitFileOverlappedAsyncResult.cs
- HtmlDocument.cs
- TrackBarRenderer.cs
- ImmComposition.cs
- ConfigPathUtility.cs
- PriorityQueue.cs
- StateItem.cs
- InputLanguageProfileNotifySink.cs
- RoutedEventArgs.cs
- ServicePointManager.cs
- Int16.cs
- SQLInt32.cs
- HttpResponseHeader.cs
- SystemWebSectionGroup.cs
- ExtentCqlBlock.cs
- PathNode.cs
- LinqDataSourceDisposeEventArgs.cs
- DetailsViewUpdateEventArgs.cs
- MaskDesignerDialog.cs
- Unit.cs
- FtpWebResponse.cs
- WmlSelectionListAdapter.cs
- EndCreateSecurityTokenRequest.cs
- DynamicDataRoute.cs
- EventNotify.cs
- ContentType.cs
- CollectionBuilder.cs
- CatalogZone.cs
- ClientProxyGenerator.cs
- VirtualPath.cs
- ControlAdapter.cs
- ButtonChrome.cs
- OverrideMode.cs
- AspNetPartialTrustHelpers.cs
- FontInfo.cs
- SemanticAnalyzer.cs
- PartialList.cs
- PropertyRecord.cs
- TextParagraphProperties.cs
- ToolZone.cs
- TargetParameterCountException.cs
- basevalidator.cs
- Matrix.cs
- GeneratedContractType.cs
- RectangleHotSpot.cs
- SpinWait.cs
- ToolBarPanel.cs
- LinearKeyFrames.cs
- SerializationException.cs
- MsmqAuthenticationMode.cs
- SecurityTokenTypes.cs
- CryptoConfig.cs
- DataGridViewButtonColumn.cs
- SplineQuaternionKeyFrame.cs
- KnownAssembliesSet.cs
- XPathBinder.cs
- SerialReceived.cs
- XmlSchemas.cs
- RoleManagerEventArgs.cs
- TagPrefixAttribute.cs
- OutOfMemoryException.cs
- Stroke2.cs
- TcpDuplicateContext.cs
- UIElement.cs
- OpenFileDialog.cs
- ChtmlTextWriter.cs
- querybuilder.cs
- HeaderCollection.cs
- RemotingException.cs
- SymLanguageVendor.cs
- QueryResult.cs
- ThemeDirectoryCompiler.cs
- UndoManager.cs
- _ConnectionGroup.cs
- COSERVERINFO.cs
- HostProtectionPermission.cs
- MetadataSource.cs
- OpenFileDialog.cs
- XmlQueryRuntime.cs
- AgileSafeNativeMemoryHandle.cs
- WinFormsComponentEditor.cs
- OraclePermissionAttribute.cs
- ObjectParameter.cs
- FrameworkContentElement.cs
- RangeValidator.cs