Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Description / FaultDescription.cs / 1 / FaultDescription.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Description { using System.Collections.Generic; using System.Xml; using System.Runtime.Serialization; using System.CodeDom; using System.ServiceModel.Security; using System.Diagnostics; using System.Net.Security; [DebuggerDisplay("Name={name}, Action={action}, DetailType={detailType}")] public class FaultDescription { string action; Type detailType; CodeTypeReference detailTypeReference; XmlName elementName; XmlName name; string ns; ProtectionLevel protectionLevel; bool hasProtectionLevel; public FaultDescription(string action) { if (action == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("action")); this.action = action; } public string Action { get { return action; } internal set { action = value; } } // Not serializable on purpose, metadata import/export cannot // produce it, only available when binding to runtime public Type DetailType { get { return detailType; } set { detailType = value; } } internal CodeTypeReference DetailTypeReference { get { return detailTypeReference; } set { detailTypeReference = value; } } public string Name { get { return name.EncodedName; } set { SetNameAndElement(new XmlName(value, true /*isEncoded*/)); } } public string Namespace { get { return ns; } set { ns = value; } } internal XmlName ElementName { get { return elementName; } set { elementName = value; } } public ProtectionLevel ProtectionLevel { get { return this.protectionLevel; } set { if (!ProtectionLevelHelper.IsDefined(value)) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value")); this.protectionLevel = value; this.hasProtectionLevel = true; } } public bool HasProtectionLevel { get { return this.hasProtectionLevel; } } internal void ResetProtectionLevel() { this.protectionLevel = ProtectionLevel.None; this.hasProtectionLevel = false; } internal void SetNameAndElement(XmlName name) { this.elementName = this.name = name; } internal void SetNameOnly(XmlName name) { this.name = name; } } } // 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
- UdpSocketReceiveManager.cs
- KnownBoxes.cs
- XmlLanguageConverter.cs
- Byte.cs
- Section.cs
- SspiHelper.cs
- Container.cs
- TextBounds.cs
- SetIterators.cs
- TableCell.cs
- TextChange.cs
- PermissionListSet.cs
- TypeTypeConverter.cs
- InkPresenterAutomationPeer.cs
- PrintControllerWithStatusDialog.cs
- DataColumnCollection.cs
- httpstaticobjectscollection.cs
- DetailsViewUpdatedEventArgs.cs
- StringHelper.cs
- Vector3DCollectionValueSerializer.cs
- EntityContainerEntitySet.cs
- _UriSyntax.cs
- ImageResources.Designer.cs
- AjaxFrameworkAssemblyAttribute.cs
- RoleManagerSection.cs
- ExtensionSimplifierMarkupObject.cs
- DataMemberFieldConverter.cs
- ParseChildrenAsPropertiesAttribute.cs
- ObjectDataSource.cs
- RSAOAEPKeyExchangeFormatter.cs
- DataGridCommandEventArgs.cs
- xmlfixedPageInfo.cs
- ObjectListTitleAttribute.cs
- EventWaitHandleSecurity.cs
- WindowsImpersonationContext.cs
- CodeExporter.cs
- WebPartsPersonalization.cs
- Convert.cs
- ExpressionLexer.cs
- ExpressionReplacer.cs
- DataObjectSettingDataEventArgs.cs
- RoutedEvent.cs
- PathFigureCollectionValueSerializer.cs
- PersonalizationStateQuery.cs
- ColorComboBox.cs
- FlowPosition.cs
- SigningDialog.cs
- PersonalizationStateInfo.cs
- DataErrorValidationRule.cs
- InternalUserCancelledException.cs
- KerberosTokenFactoryCredential.cs
- WebConfigurationFileMap.cs
- HandlerMappingMemo.cs
- ElementAtQueryOperator.cs
- MimeTypeMapper.cs
- HttpChannelHelper.cs
- ToggleProviderWrapper.cs
- HttpCookieCollection.cs
- TrustVersion.cs
- NonParentingControl.cs
- PrintPreviewControl.cs
- ConfigurationSchemaErrors.cs
- DefaultValueConverter.cs
- ImageListUtils.cs
- BehaviorEditorPart.cs
- StorageInfo.cs
- CachedFontFace.cs
- InvalidDataContractException.cs
- RegexBoyerMoore.cs
- CompilerGeneratedAttribute.cs
- CompositeScriptReferenceEventArgs.cs
- TypeDescriptor.cs
- Variant.cs
- DataTemplate.cs
- AddressingVersion.cs
- EncodingInfo.cs
- TextContainerChangedEventArgs.cs
- Literal.cs
- TextEffect.cs
- HorizontalAlignConverter.cs
- GlobalProxySelection.cs
- CodeTypeParameterCollection.cs
- HtmlContainerControl.cs
- FilteredAttributeCollection.cs
- ExecutionEngineException.cs
- InfoCardConstants.cs
- IOException.cs
- SessionKeyExpiredException.cs
- Axis.cs
- DeclarativeCatalogPart.cs
- LicenseManager.cs
- OleServicesContext.cs
- OpenTypeLayoutCache.cs
- SqlTypeConverter.cs
- XmlUrlResolver.cs
- SwitchDesigner.xaml.cs
- WebPartCollection.cs
- ItemAutomationPeer.cs
- MemberJoinTreeNode.cs
- ZipIOCentralDirectoryBlock.cs