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[RBACAllowAttribute]
[OperationContractAttribute]
WsResult<IEnumerable<CompanyBanner>> GetCompanyBannerByUrl(
string url,
string companyBannerTypeCode
)
<RBACAllowAttribute>
<OperationContractAttribute>
Function GetCompanyBannerByUrl (
url As String,
companyBannerTypeCode As String
) As WsResult(Of IEnumerable(Of CompanyBanner))
[RBACAllowAttribute]
[OperationContractAttribute]
WsResult<IEnumerable<CompanyBanner^>^>^ GetCompanyBannerByUrl(
String^ url,
String^ companyBannerTypeCode
)
[<RBACAllowAttribute>]
[<OperationContractAttribute>]
abstract GetCompanyBannerByUrl :
url : string *
companyBannerTypeCode : string -> WsResult<IEnumerable<CompanyBanner>>
function GetCompanyBannerByUrl(
url : String,
companyBannerTypeCode : String
) : WsResult<IEnumerable<CompanyBanner>>
Parameters
- url
- Type: SystemString
- companyBannerTypeCode
- 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