This documentation is archived and is not being maintained.

DeliveryRequirementsAttribute.RequireOrderedDelivery Property

Specifies whether the binding must support ordered messages.

Namespace:  System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public bool RequireOrderedDelivery { get; set; }

Property Value

Type: System.Boolean
true instructs Windows Communication Foundation (WCF) to confirm that the binding must support the ordering of messages; otherwise, false. The default is false.

Setting the RequireOrderedDelivery property to false instructs WCF to perform no validation.

The following code example uses the DeliveryRequirementsAttribute attribute to instruct WCF to confirm at runtime that the actual binding does support ordered messages.

using System;
using System.ServiceModel;

interface ICalculatorService
  int Add(int a, int b);  

  int Subtract(int a, int b);

class CalculatorService: ICalculatorService
  public int Add(int a, int b)
    Console.WriteLine("Add called.");
    return a + b; 

  public int Subtract(int a, int b)
    Console.WriteLine("Subtract called.");
    return a - b;

  public int Multiply(int a, int b)
    return a * b;

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0