コード例 #1
0
 public static Task Delete(vCloudClient client, ReferenceType adminVdcRef)
 {
     try
     {
         return(AdminVdc.DeleteAdminVdc(client, adminVdcRef.href));
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }
コード例 #2
0
 public Task Delete()
 {
     try
     {
         return(AdminVdc.DeleteAdminVdc(this.VcloudClient, this.Reference.href));
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }
コード例 #3
0
 public void Disable()
 {
     try
     {
         AdminVdc.ExecuteVdcAction(this.VcloudClient, this.Reference.href + "/action/disable", (string)null, (string)null, 204);
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }
コード例 #4
0
 public static void Disable(vCloudClient client, ReferenceType adminVdcRef)
 {
     try
     {
         string orgActionUrl = adminVdcRef.href + "/action/disable";
         AdminVdc.ExecuteVdcAction(client, orgActionUrl, (string)null, (string)null, 204);
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }