We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

IStringHttpBodyEditorPlugin.CreateEditor Method

Creates a UserControl object to modify the specified string.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Object CreateEditor(
	string contentType,
	string initialValue


Type: System.String
Content type of the StringHttpBody.
Type: System.String
String, which is the payload of the StringHttpBody, to modify.

Return Value

Type: System.Object
A UserControl object that can display and modify the string value of the specified content type.

This control will be hosted in the plug-in dialog box, which provides OK and Cancel buttons.