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: 1.0.0.0 (1.0.0.0)
Syntax[OperationContractAttribute]
WsResult SetReadNews(
int newsID,
NewsSenderTypes senderType
)
<OperationContractAttribute>
Function SetReadNews (
newsID As Integer,
senderType As NewsSenderTypes
) As WsResult
[OperationContractAttribute]
WsResult^ SetReadNews(
int newsID,
NewsSenderTypes senderType
)
[<OperationContractAttribute>]
abstract SetReadNews :
newsID : int *
senderType : NewsSenderTypes -> WsResult
function SetReadNews(
newsID : int,
senderType : NewsSenderTypes
) : WsResult
Parameters
- newsID
- Type: SystemInt32
Value of type System.Int32, represents the identifier of the news to be read
- senderType
- 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.
Examples
In the following example describes a custom method, called ReadNews (), which via a call
the method SetReadNews () to Aruba WsEndUser.
private void ReadNews()
{
try
{
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