Last active
April 30, 2018 00:15
-
-
Save KanwarSingh/9cc0fe682babc537652226f846cad709 to your computer and use it in GitHub Desktop.
User Agent Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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