예제 #1
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);
     }
 }
예제 #2
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);
     }
 }