Click or drag to resize

IWsEndUserSetReadNews Method

Set a News as read. By the method SetReadNews () of Aruba WsEndUser, is a report notifications as read in a manner that does not resubmit it to the user.

Namespace:  Aruba.Cloud.WsEndUser
Assembly:  Aruba.Cloud.WsEndUser (in Aruba.Cloud.WsEndUser.dll) Version: (
WsResult SetReadNews(
	int newsID,
	NewsSenderTypes senderType


Type: SystemInt32
Value of type System.Int32, represents the identifier of the news to be read
Type: Aruba.Cloud.Provisioning.EntitiesNewsSenderTypes
Value of type NewsSenderTypes, represents the type of the sender.

Return Value

Type: WsResult
The method returns an object WsResult contains information about the method call.
In the following example describes a custom method, called ReadNews (), which via a call the method SetReadNews () to Aruba WsEndUser.
private void ReadNews()
    Int32 newsID=10;
    NewsSenderTypes senderType=NewsSenderTypes.Operator;

    WsResult result = client.SetReadNews(newsID,senderType);

    if (!result.Success)
      throw new ApplicationException(String.Format(
        "An error has occurred while invoking SetReadNews(). {0}", result.ResultMessage));

  catch (Exception ex)
    throw new ApplicationException(String.Format("An error has occurred read News {0}", ex.Message));
See Also