Click or drag to resize

IWsCommonGetCompanyBannerByUrl Method

This method returns informations about banners of a specific company defined in the URL domain.

Namespace:  Aruba.Cloud.WsCommon
Assembly:  Aruba.Cloud.WsCommon (in Aruba.Cloud.WsCommon.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[OperationContractAttribute]
WsResult<IEnumerable<CompanyBanner>> GetCompanyBannerByUrl(
	string url
)

Parameters

url
Type: SystemString

Return Value

Type: WsResultIEnumerableCompanyBanner
Examples
This is a c# call example:
private static void Test_WsCommon_GetContracts()
{
using (var client = new WsCommon.WsCommonClient())
{
client.ClientCredentials.UserName.UserName = ARU_0000;
client.ClientCredentials.UserName.Password = ARU_PSW;

var url = "https://admin.dc1.computing.cloud.it/Login.aspx";
var res = client.GetCompanyBannerByUrl(url);

if (res.Success)
{
foreach (var c in res.Value)
{
Console.WriteLine(
string.Format(
"{0} {1}",
c.Banner, c.CompanyBannerTypeCode));
}
}
else
{
throw new Exception(res.ResultMessage);
}
}
Console.ReadLine();
}
See Also