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
- ServiceRoute.cs
- CommandID.cs
- GridItemPattern.cs
- COM2FontConverter.cs
- CatalogPartChrome.cs
- ConfigurationSettings.cs
- WasHostedComPlusFactory.cs
- ProcessDesigner.cs
- ProcessStartInfo.cs
- PackagePart.cs
- DocumentStatusResources.cs
- GeneralTransform3DGroup.cs
- PrimaryKeyTypeConverter.cs
- Tablet.cs
- SiteMapDataSource.cs
- Win32SafeHandles.cs
- XmlDataProvider.cs
- ValueQuery.cs
- CommandHelper.cs
- Empty.cs
- ParameterToken.cs
- Int32.cs
- InputLanguageSource.cs
- ClusterSafeNativeMethods.cs
- EdmComplexTypeAttribute.cs
- DataTableMapping.cs
- ToolBarButton.cs
- Codec.cs
- XmlHierarchyData.cs
- SchemaImporterExtensionsSection.cs
- ping.cs
- ControlBuilder.cs
- TemplateControlParser.cs
- ControlEvent.cs
- DesignerListAdapter.cs
- EdmProperty.cs
- PlatformCulture.cs
- IQueryable.cs
- FormsAuthenticationTicket.cs
- ObjectDataSourceSelectingEventArgs.cs
- XmlSchemaSimpleContent.cs
- SystemDropShadowChrome.cs
- TemplateBaseAction.cs
- TreeNodeCollectionEditor.cs
- BindingEntityInfo.cs
- WindowsTreeView.cs
- X509ChainPolicy.cs
- CardSpaceShim.cs
- ThousandthOfEmRealDoubles.cs
- ObjectItemCollection.cs
- Process.cs
- BlockExpression.cs
- TreeView.cs
- Trace.cs
- CacheAxisQuery.cs
- TextContainerHelper.cs
- WebBrowser.cs
- GridViewRowCollection.cs
- MinimizableAttributeTypeConverter.cs
- IndividualDeviceConfig.cs
- ResourceContainer.cs
- Zone.cs
- EventDescriptor.cs
- BatchParser.cs
- StylusEventArgs.cs
- StylusPointProperty.cs
- AssemblyHash.cs
- PreProcessInputEventArgs.cs
- CrossAppDomainChannel.cs
- ServiceOperationDetailViewControl.cs
- AnnotationStore.cs
- ContentType.cs
- DataGridPageChangedEventArgs.cs
- safelinkcollection.cs
- LinkConverter.cs
- Vector.cs
- ValueTypeFixupInfo.cs
- Msec.cs
- CategoryNameCollection.cs
- XmlWrappingReader.cs
- LinqDataView.cs
- SqlUserDefinedTypeAttribute.cs
- TypeGeneratedEventArgs.cs
- XmlWriterTraceListener.cs
- ListViewCancelEventArgs.cs
- InvokeProviderWrapper.cs
- MediaPlayerState.cs
- SamlAuthorizationDecisionClaimResource.cs
- TemplatedAdorner.cs
- XmlReader.cs
- SafeIUnknown.cs
- HttpHostedTransportConfiguration.cs
- wgx_commands.cs
- PartialArray.cs
- SQLDouble.cs
- EntityPropertyMappingAttribute.cs
- XPathPatternParser.cs
- ValidationSummary.cs
- CodeCommentStatement.cs
- WindowInteractionStateTracker.cs