@sandeepv415 ,

I thnk the sample code you provided is for vb.net app but it doesn't apply for windows 8 apps.

thx