When this button is on, the sample slot shows the “end result”: the combination of all maps and shaders in the material tree.
When this button is off, the sample slot shows only the current level of the material. This tool is useful when you are working with compound materials. It would be difficult to see exactly what effect you're creating on a particular level if you didn't have the ability to turn off the display of the other levels.