private static void CheckProjectPermissionForAgency(IamClient iamV3Client) { var checkPermissionForAgencyOnProjectRequest = new CheckProjectPermissionForAgencyRequest() { ProjectId = "", AgencyId = "", RoleId = "" }; try { var checkPermissionForAgencyOnProjectResponse = iamV3Client.CheckProjectPermissionForAgency(checkPermissionForAgencyOnProjectRequest); Console.WriteLine(JsonConvert.SerializeObject(checkPermissionForAgencyOnProjectResponse.HttpStatusCode)); } catch (RequestTimeoutException requestTimeoutException) { Console.WriteLine(requestTimeoutException.ErrorMessage); } catch (ServiceResponseException clientRequestException) { Console.WriteLine(clientRequestException.HttpStatusCode); Console.WriteLine(clientRequestException.ErrorCode); Console.WriteLine(clientRequestException.ErrorMsg); } catch (ConnectionException connectionException) { Console.WriteLine(connectionException.ErrorMessage); } }