System.ServiceModel 4.0.0.0 System.Attribute System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method | System.AttributeTargets.Interface | System.AttributeTargets.All, Inherited=false)

This attribute is similar to the attribute. Both attributes can be applied to a method, class, or interface.

crabout the , see Using the XmlSerializer.

A method can have either of the two attributes applied, but not both. Any operation that has neither applied uses the attribute applied to the containing class. If the containing class does not have either attribute applied, the is used.

Applying the attribute also causes a to be created at runtime. The behavior allows customization at runtime of the serializer behavior.

Instructs the indigo1 infrastructure to use the instead of the .

- Constructor
  4.0.0.0
  To be added.

  Initializes a new instance of the class.

- Property
  4.0.0.0
  System.ServiceModel.OperationFormatStyle To be added.

  The and properties affect how messages are formatted.

  Gets or sets the SOAP style of the .

- Property
  4.0.0.0
  System.Boolean To be added.

  The default formatter for fault serialization is the . To use the , set this property to true. Starting in .NET 4 the serializer set by the property will be used even if a custom behavior is set on the contract to which the is applied.

  Gets or sets a value that indicates that the should be used for reading and writing faults.

- Property
  4.0.0.0
  System.ServiceModel.OperationFormatUse To be added.

  The and properties affect how messages are formatted.

  Gets or sets a value that specifies the format to use.