SPMobileMessagingAccount.CheckServiceUpdate Method

Ensures that the SPMobileMessagingAccount object’s information about the Office Mobile Service (OMS) messaging Web service provider is at least as recent as the specified date.

Namespace:  Microsoft.SharePoint.MobileMessage
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Function CheckServiceUpdate ( _
    lastUpdate As DateTime _
) As Boolean
'Usage
Dim instance As SPMobileMessagingAccount
Dim lastUpdate As DateTime
Dim returnValue As Boolean

returnValue = instance.CheckServiceUpdate(lastUpdate)
public bool CheckServiceUpdate(
    DateTime lastUpdate
)

Parameters

  • lastUpdate
    Type: System.DateTime

    The comparison date; typically, the date the caller is assuming was the most recent time that any of the provider’s properties changed.

Return Value

Type: System.Boolean
true if the information is current (defined by lastUpdate) following the call; otherwise, false

Remarks

If the information is already current, the method returns true. If the information is not current, UpdateServiceProvider() is called and the LastUpdate property is set to lastUpdate. If the update fails for any reason, the method returns false.

When a message is sent, the response contains the time of the last update. Use this time as the parameter for the CheckServiceUpdate(DateTime) method.

See Also

Reference

SPMobileMessagingAccount Class

SPMobileMessagingAccount Members

Microsoft.SharePoint.MobileMessage Namespace