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
- DesignTimeTemplateParser.cs
- WebBrowserNavigatingEventHandler.cs
- FormsAuthenticationTicket.cs
- FSWPathEditor.cs
- SqlCharStream.cs
- WindowsListBox.cs
- ContextDataSourceView.cs
- PerformanceCounterPermissionEntry.cs
- Int32KeyFrameCollection.cs
- ResourceCategoryAttribute.cs
- Rotation3DKeyFrameCollection.cs
- MenuItemBinding.cs
- CqlIdentifiers.cs
- Int32Animation.cs
- PtsPage.cs
- MULTI_QI.cs
- StateBag.cs
- XmlDataDocument.cs
- ContainerUIElement3D.cs
- ObjectViewFactory.cs
- EndEvent.cs
- RelOps.cs
- TileModeValidation.cs
- CustomLineCap.cs
- ToolStripItemImageRenderEventArgs.cs
- RequestCacheManager.cs
- ExtensionCollection.cs
- ArgumentOutOfRangeException.cs
- ActivityPropertyReference.cs
- SQLGuid.cs
- base64Transforms.cs
- Label.cs
- MasterPage.cs
- WindowsTab.cs
- Line.cs
- CTreeGenerator.cs
- SwitchExpression.cs
- X509IssuerSerialKeyIdentifierClause.cs
- Run.cs
- VirtualDirectoryMappingCollection.cs
- ServiceMetadataExtension.cs
- ApplicationBuildProvider.cs
- LogLogRecordHeader.cs
- XmlSchemaGroupRef.cs
- BitmapMetadataEnumerator.cs
- PropVariant.cs
- TrustManager.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- ObjectViewEntityCollectionData.cs
- Html32TextWriter.cs
- CryptoStream.cs
- StaticDataManager.cs
- DiscoveryMessageSequence11.cs
- MappedMetaModel.cs
- UriWriter.cs
- ItemDragEvent.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- DesignerView.xaml.cs
- ThemeDirectoryCompiler.cs
- PropertiesTab.cs
- GlyphRunDrawing.cs
- WebPartEditorOkVerb.cs
- AssociationSetMetadata.cs
- DbConnectionStringBuilder.cs
- LateBoundBitmapDecoder.cs
- ManipulationLogic.cs
- ConsoleKeyInfo.cs
- IPAddress.cs
- DetailsViewPageEventArgs.cs
- DebugTrace.cs
- DesignerForm.cs
- TypeConverter.cs
- RevocationPoint.cs
- ParamArrayAttribute.cs
- ClientRuntimeConfig.cs
- StreamGeometryContext.cs
- ChtmlImageAdapter.cs
- ResourcePool.cs
- SspiSafeHandles.cs
- ObjectSecurity.cs
- BufferModesCollection.cs
- XsdDateTime.cs
- ToolStripItemEventArgs.cs
- FilterEventArgs.cs
- PermissionSet.cs
- ConfigPathUtility.cs
- CellCreator.cs
- Path.cs
- EntityEntry.cs
- MediaPlayerState.cs
- PropertyContainer.cs
- LogAppendAsyncResult.cs
- Walker.cs
- SoapMessage.cs
- TrustLevelCollection.cs
- EventItfInfo.cs
- QilReference.cs
- FileChangeNotifier.cs
- StateMachine.cs
- SaveLedgerEntryRequest.cs