set_UserAgent()

HttpWebRequest::set_UserAgent(System::String) method

Sets a value of the ‘User-Agent’ header.

virtual void System::Net::HttpWebRequest::set_UserAgent(System::String value)

Arguments

ParameterTypeDescription
valueSystem::StringThe value that must be set.

See Also