 <p>You can look into this msdn article it has a sample example as well</p> <p><a href="http://msdn.microsoft.com/en-us/library/ee728598(v=VS.98).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ee728598(v=VS.98).aspx</a></p>