다음을 통해 공유


GetEventsType.Watermark Property

The Watermark property gets or sets a string that represents an event bookmark in the mailbox event queue. This property is required. This is a read/write property.

Namespace: ExchangeWebServices
Assembly: EWS (in ews.dll)

Syntax

'Declaration
Public Property Watermark As String
public string Watermark { get; set; }
public:
property String^ Watermark {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_Watermark ()

/** @property */
public void set_Watermark (String value)
public function get Watermark () : String

public function set Watermark (value : String)

Property Value

The Watermark property returns a string.

Remarks

This watermark describes where the GetEvents operation begins to return events. The watermark that is passed to GetEvents must be the last watermark that was returned to the client. If this is the first call to GetEvents after Subscribe, the watermark that is returned by Subscribe should be passed to GetEvents. If GetEvents has already been called, the watermark that is passed to the next GetEvents call must be the watermark of the last event that is returned from the previous GetEvents call.

If the Watermark property is set with an invalid watermark, an ErrorInvalidWatermark error is returned to the client application.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows 98, Windows 2000, Windows 2000 Server, Windows CE, Windows Longhorn, Windows 98 Second Edition, Pocket PC, Smart Phone, Windows Server 2003, Windows XP Professional with Service Pack 2 (SP2)