Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / FaultReasonText.cs / 1 / FaultReasonText.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel { using System.Globalization; using System.Threading; public class FaultReasonText { string xmlLang; string text; public FaultReasonText(string text) { if (text == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("text")); this.text = text; this.xmlLang = CultureInfo.CurrentCulture.Name; } public FaultReasonText(string text, string xmlLang) { if (text == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("text")); if (xmlLang == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("xmlLang")); this.text = text; this.xmlLang = xmlLang; } public FaultReasonText(string text, CultureInfo cultureInfo) { if (text == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("text")); if (cultureInfo == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("cultureInfo")); this.text = text; this.xmlLang = cultureInfo.Name; } public bool Matches(CultureInfo cultureInfo) { if (cultureInfo == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("cultureInfo")); return xmlLang == cultureInfo.Name; } public string XmlLang { get { return xmlLang; } } public string Text { get { return text; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AssemblyNameEqualityComparer.cs
- SecurityTokenException.cs
- hresults.cs
- PageHandlerFactory.cs
- StorageEntityContainerMapping.cs
- CurrencyWrapper.cs
- HandledEventArgs.cs
- MessageQueuePermissionEntryCollection.cs
- CounterCreationData.cs
- XmlSchemaType.cs
- SharedStatics.cs
- CredentialCache.cs
- DataGridViewTopLeftHeaderCell.cs
- compensatingcollection.cs
- CatalogPartChrome.cs
- FlowDocumentFormatter.cs
- CqlBlock.cs
- ConfigXmlAttribute.cs
- CryptoKeySecurity.cs
- MultiByteCodec.cs
- IPAddressCollection.cs
- COM2AboutBoxPropertyDescriptor.cs
- DataGrid.cs
- LongTypeConverter.cs
- UnicastIPAddressInformationCollection.cs
- SecureStringHasher.cs
- WizardSideBarListControlItem.cs
- NamedPipeTransportSecurityElement.cs
- StrokeIntersection.cs
- EmptyCollection.cs
- TransformValueSerializer.cs
- EDesignUtil.cs
- Triplet.cs
- FieldTemplateFactory.cs
- SelectionItemPattern.cs
- JoinGraph.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- IsolatedStorageFileStream.cs
- SelectionProcessor.cs
- DataGridSortCommandEventArgs.cs
- Metafile.cs
- DataList.cs
- MonthChangedEventArgs.cs
- PackageRelationship.cs
- ProfileManager.cs
- Dump.cs
- X509SecurityTokenAuthenticator.cs
- NetCodeGroup.cs
- ValueTable.cs
- DataFormats.cs
- ConfigPathUtility.cs
- __Error.cs
- GroupItem.cs
- Maps.cs
- ImageBrush.cs
- StylusDevice.cs
- HtmlTernaryTree.cs
- RenderTargetBitmap.cs
- ConfigurationManager.cs
- DynamicDiscoSearcher.cs
- sqlcontext.cs
- SapiAttributeParser.cs
- CompoundFileDeflateTransform.cs
- DefaultParameterValueAttribute.cs
- DynamicRouteExpression.cs
- TypedTableHandler.cs
- RectAnimationBase.cs
- OledbConnectionStringbuilder.cs
- TableChangeProcessor.cs
- MetricEntry.cs
- DispatchChannelSink.cs
- LookupBindingPropertiesAttribute.cs
- ClientSettingsStore.cs
- DataServiceException.cs
- DataSpaceManager.cs
- SuppressMessageAttribute.cs
- Message.cs
- UrlMappingsModule.cs
- NonDualMessageSecurityOverHttp.cs
- ComplexTypeEmitter.cs
- CustomAttributeBuilder.cs
- HttpListenerException.cs
- MediaTimeline.cs
- WebPartCloseVerb.cs
- PropertyChangedEventArgs.cs
- TraceFilter.cs
- Serializer.cs
- DataSourceListEditor.cs
- ExpressionEditorSheet.cs
- FocusTracker.cs
- TemplatePartAttribute.cs
- RowSpanVector.cs
- diagnosticsswitches.cs
- WindowsIdentity.cs
- CodeTypeDeclarationCollection.cs
- AdPostCacheSubstitution.cs
- ProjectionPath.cs
- ClockController.cs
- Byte.cs
- IndexedString.cs