Click or drag to resize

IWsEndUserGetNews Method

Gets the news even read ada for the authenticated user Using the method GetNews () WsEndUser of Aruba, you can user the list of news.

Namespace:  Aruba.Cloud.WsEndUser
Assembly:  Aruba.Cloud.WsEndUser (in Aruba.Cloud.WsEndUser.dll) Version: (
WsResult<News[]> GetNews(
	string language


Type: SystemString
Value of type System.String language for which you require news

Return Value

Type: WsResultNews
The method returns an object of class WsResult<News[]> containing detailed information on News.
In the following example describes a method, called GetAllNews (), or through a call to GetNews () to Aruba WsEndUser, get license information affordable.
private News[] GetAllNews()
    String language="it";

    WsResultOfArrayOfNews result = client.GetNews(language);

    if (result.Success)
        return result.Value;
      throw new ApplicationException (String.Format(
        "An error has occurred while invoking GetNews(). {0}", result.ResultMessage));
  catch (Exception ex)
    throw new ApplicationException(String.Format("An error has occurred while getting News {0}", ex.Message));
See Also