System.ServiceModel 4.0.0.0 System.ServiceModel.MessageHeaderAttribute System.AttributeUsage(System.AttributeTargets.Property | System.AttributeTargets.Field | System.AttributeTargets.All, Inherited=false)

Use the attribute to turn off the standard array wrapper element when you want to emit an unbounded number of identical elements either inside the <soap:Header> directly or inside the first and only child of <soap:Header> without the default wrapper element for array types.

can be applied only to members of an array type. If specified, the and are used as the name and namespace of the element of each array item. If not specified, the array item elements are named using the same convention used for naming non-repeating body parts. For more information, see and .

For information about controlling the serialization of the contents of a SOAP body without modifying the default SOAP envelope itself, see , Specifying Data Transfer in Service Contracts, and Data Contracts Overview.

For more information about creating message contracts, see Using Message Contracts.

Specifies that the default wrapper element in the SOAP message must not be written around array types in a header element.

- Constructor
  4.0.0.0

  Use to suppress the default array wrapper element when you want to include unbounded array items in a SOAP message header.

  Initializes a new instance of the class.