public AddAzureVhd ( |
||
localFile | ||
destination | string | |
return | Microsoft.WindowsAzure.Management.ServiceManagement.Model.VhdUploadContext |
public VhdUploadContext AddAzureVhd(FileInfo localFile, string destination)
{
var addAzureVhdCmdletInfo = new AddAzureVhdCmdletInfo(destination, localFile.FullName);
WindowsAzurePowershellCmdlet azurePowershellCmdlet = new WindowsAzurePowershellCmdlet(addAzureVhdCmdletInfo);
Collection<PSObject> result = azurePowershellCmdlet.Run();
if (result.Count == 1)
{
return (VhdUploadContext)result[0].BaseObject;
}
return null;
}
ServiceManagementCmdletTestHelper::AddAzureVhd ( Microsoft.WindowsAzure.Management.ServiceManagement.Test.FunctionalTests.IaasCmdletInfo.AddAzureVhdCmdletInfo cmdletInfo ) : Microsoft.WindowsAzure.Management.ServiceManagement.Model.VhdUploadContext | |
ServiceManagementCmdletTestHelper::AddAzureVhd ( |