Bewerken

Delen via


IContextChannel.OperationTimeout Property

Definition

Gets or sets the time period within which an operation must complete or an exception is thrown.

public:
 property TimeSpan OperationTimeout { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan OperationTimeout { get; set; }
member this.OperationTimeout : TimeSpan with get, set
Public Property OperationTimeout As TimeSpan

Property Value

The TimeSpan that specifies the time period within which an operation must complete.

Remarks

If transaction flow is enabled on the binding or the channel, the operation may take longer to execute than the specified timeout. In these circumstances the operation will fail due to the expired timeout and the transaction will abort appropriately.

Applies to