SpriteBatch custom shader sampler state

Normally I set the sampler states in the hlsl files. For the texture passed to the spriteBatch.Draw() method… Does thos work the same or do I have to set the SamplerState by passing a value to the Draw() method? What if I do both? I assume if both options are in use then maybe one overwrites the other option? If so which has priority?