Skip to content

Instantly share code, notes, and snippets.

@KanwarSingh
Last active April 30, 2018 00:15
Show Gist options
  • Save KanwarSingh/9cc0fe682babc537652226f846cad709 to your computer and use it in GitHub Desktop.
Save KanwarSingh/9cc0fe682babc537652226f846cad709 to your computer and use it in GitHub Desktop.
User Agent Example
// Add our User Agent information
context.ExecutingWebRequest += delegate (object sender, WebRequestEventArgs e)
{
e.WebRequestExecutor.WebRequest.UserAgent = "NONISV|CompanyName|GovernanceCheck/1.0";
};
context.ExecuteQuery();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment