Set the date and time for which the message should remain valid, i.e. if not fully delivered do not send any non-delivered messages after the specified date.


Namespace: Dynmark.Services.API
Assembly: Dynmark.Services.API (in Dynmark.Services.API.dll)

Syntax

Visual Basic (Declaration)
Public Property ValidUntil As Date
C#
public DateTime ValidUntil { get; set; }
C++
public property DateTime ValidUntil sealed  {
    DateTime get();
    void set(DateTime value);
}
J#
/** property */
public DateTime get_ValidUntil();

/** property */
public void set_ValidUntil(DateTime value);
JScript
public function get ValidUntil() : DateTime

public function set ValidUntil(value : DateTime);

Property Value

A DateTime object identifying the expiry period for the message

Exceptions

Exception TypeCondition
ApiArgumentExceptionThrown if the date is greater than 3 days after delivery date

Remarks

To set back to its default value, set equal to DateTime.MinValue

See Also