Adding sample code from MSDN

http://msdn.microsoft.com/en-us/library/hh228603(v=vs.110).aspx