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
- DataTableMapping.cs
- FilterEventArgs.cs
- InitializeCorrelation.cs
- ContractUtils.cs
- RequestCache.cs
- ObjectListTitleAttribute.cs
- WebSysDescriptionAttribute.cs
- PeerContact.cs
- Thickness.cs
- _AutoWebProxyScriptHelper.cs
- PingReply.cs
- LinqDataSourceEditData.cs
- ToolboxBitmapAttribute.cs
- DataGridColumn.cs
- ExceptionValidationRule.cs
- XmlSchemaChoice.cs
- FrameworkElementFactoryMarkupObject.cs
- ToolStripDropDownClosingEventArgs.cs
- MetadataItemSerializer.cs
- ParameterToken.cs
- AddIn.cs
- HwndHostAutomationPeer.cs
- TableLayoutStyle.cs
- GetMemberBinder.cs
- StringBuilder.cs
- DataRecordObjectView.cs
- TextElementEditingBehaviorAttribute.cs
- DesignerCapabilities.cs
- AttributeCollection.cs
- FilterException.cs
- DispatcherExceptionFilterEventArgs.cs
- MissingManifestResourceException.cs
- QueryStringConverter.cs
- FunctionImportElement.cs
- DbReferenceCollection.cs
- CodeLinePragma.cs
- cookiecontainer.cs
- Walker.cs
- ListItem.cs
- EntityUtil.cs
- DataGridTableStyleMappingNameEditor.cs
- ToolBarButtonClickEvent.cs
- SymbolType.cs
- FixedElement.cs
- WmlLiteralTextAdapter.cs
- SchemaLookupTable.cs
- GacUtil.cs
- WebResourceAttribute.cs
- Base64Decoder.cs
- StylusEventArgs.cs
- Privilege.cs
- MatrixKeyFrameCollection.cs
- DrawingBrush.cs
- ErrorItem.cs
- XmlSchemaValidationException.cs
- DbTransaction.cs
- CodeTypeDeclaration.cs
- DeclarationUpdate.cs
- PipeException.cs
- InheritablePropertyChangeInfo.cs
- xmlfixedPageInfo.cs
- Cursor.cs
- XhtmlBasicCalendarAdapter.cs
- AnnotationComponentChooser.cs
- WindowsIdentity.cs
- UIElement3DAutomationPeer.cs
- ApplicationServiceManager.cs
- XPathCompileException.cs
- ElapsedEventArgs.cs
- RoleManagerEventArgs.cs
- BamlLocalizableResource.cs
- RouteData.cs
- AssemblyAttributesGoHere.cs
- VisualStateChangedEventArgs.cs
- EventLogEntryCollection.cs
- SqlCacheDependencyDatabaseCollection.cs
- XPathQilFactory.cs
- MatrixTransform.cs
- PageThemeParser.cs
- ConditionCollection.cs
- codemethodreferenceexpression.cs
- ToolbarAUtomationPeer.cs
- ResolveNameEventArgs.cs
- PixelFormatConverter.cs
- ComIntegrationManifestGenerator.cs
- SystemIPInterfaceProperties.cs
- SwitchLevelAttribute.cs
- WaitForChangedResult.cs
- ReachDocumentPageSerializerAsync.cs
- DataGridViewCellStyleChangedEventArgs.cs
- GridViewRowCollection.cs
- PersonalizationStateQuery.cs
- CommandLineParser.cs
- DrawingGroupDrawingContext.cs
- ConnectionManagementElementCollection.cs
- ToolboxItemCollection.cs
- SqlCaseSimplifier.cs
- BasicExpressionVisitor.cs
- XmlImplementation.cs
- Panel.cs