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
- PropertyValueUIItem.cs
- BindableAttribute.cs
- Normalizer.cs
- XmlFormatReaderGenerator.cs
- AsnEncodedData.cs
- ViewCellSlot.cs
- InternalConfigRoot.cs
- ScriptReferenceBase.cs
- ToolStripContentPanelRenderEventArgs.cs
- TemplateComponentConnector.cs
- RightsManagementPermission.cs
- VoiceInfo.cs
- UmAlQuraCalendar.cs
- QueryContinueDragEventArgs.cs
- ErrorBehavior.cs
- EntityDataSourceWizardForm.cs
- ObjectListCommandsPage.cs
- SchemaImporterExtensionElementCollection.cs
- BaseTemplateParser.cs
- ThreadPool.cs
- InlinedAggregationOperator.cs
- ExpressionLexer.cs
- Mutex.cs
- InputProviderSite.cs
- UxThemeWrapper.cs
- SignatureToken.cs
- SimpleFileLog.cs
- RoleManagerEventArgs.cs
- NullableDoubleMinMaxAggregationOperator.cs
- PointAnimationUsingKeyFrames.cs
- ParseElement.cs
- Control.cs
- XPathDocumentNavigator.cs
- ResXResourceReader.cs
- HostSecurityManager.cs
- LicenseException.cs
- DefaultSerializationProviderAttribute.cs
- MdiWindowListStrip.cs
- AnnotationObservableCollection.cs
- Typography.cs
- NativeMethods.cs
- PersianCalendar.cs
- HttpWriter.cs
- DisplayNameAttribute.cs
- CompressEmulationStream.cs
- TypeUnloadedException.cs
- FontSizeConverter.cs
- AttributeXamlType.cs
- ScriptingScriptResourceHandlerSection.cs
- MimeFormatExtensions.cs
- TransformGroup.cs
- ProviderMetadataCachedInformation.cs
- EventRecord.cs
- PointLightBase.cs
- DataSourceProvider.cs
- WithParamAction.cs
- ToolStripStatusLabel.cs
- HyperLinkColumn.cs
- MergeFilterQuery.cs
- TextPointerBase.cs
- SiteOfOriginContainer.cs
- OLEDB_Enum.cs
- VariableQuery.cs
- ObjectToIdCache.cs
- XamlTypeMapper.cs
- IndexedEnumerable.cs
- QilVisitor.cs
- indexingfiltermarshaler.cs
- EditingCoordinator.cs
- ActiveDocumentEvent.cs
- ServiceModelConfiguration.cs
- WindowsStartMenu.cs
- RowUpdatedEventArgs.cs
- FacetChecker.cs
- ResXBuildProvider.cs
- codemethodreferenceexpression.cs
- TimeSpanConverter.cs
- CheckBox.cs
- TraceHandler.cs
- DataGridViewCellCancelEventArgs.cs
- JsonDeserializer.cs
- DeclarativeCatalogPart.cs
- XmlSerializerNamespaces.cs
- ImageUrlEditor.cs
- MD5.cs
- BaseParaClient.cs
- ServiceNameElement.cs
- ConnectionStringSettings.cs
- TreeChangeInfo.cs
- OleDbPropertySetGuid.cs
- FrameDimension.cs
- CodeDirectoryCompiler.cs
- StateManagedCollection.cs
- TemplatedMailWebEventProvider.cs
- DbMetaDataCollectionNames.cs
- ByteStorage.cs
- hresults.cs
- XLinq.cs
- prefixendpointaddressmessagefiltertable.cs
- RectangleHotSpot.cs