IStringHttpBodyEditorPlugin.CreateEditor 方法

创建 UserControl 对象以修改指定的字符串。

命名空间:  Microsoft.VisualStudio.TestTools.WebTesting
程序集:  Microsoft.VisualStudio.QualityTools.WebTestFramework(在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)

语法

声明
Function CreateEditor ( _
    contentType As String, _
    initialValue As String _
) As Object
Object CreateEditor(
    string contentType,
    string initialValue
)
Object^ CreateEditor(
    String^ contentType, 
    String^ initialValue
)
abstract CreateEditor : 
        contentType:string * 
        initialValue:string -> Object 
function CreateEditor(
    contentType : String, 
    initialValue : String
) : Object

参数

  • contentType
    类型:System.String
    StringHttpBody 的内容类型。
  • initialValue
    类型:System.String
    要修改的字符串,该字符串是 StringHttpBody 的负载。

返回值

类型:System.Object
可以显示和修改指定内容类型的字符串值的 UserControl 对象。

备注

在提供确定和取消按钮的插件对话框中将承载此控件。

.NET Framework 安全性

请参见

参考

IStringHttpBodyEditorPlugin 接口

Microsoft.VisualStudio.TestTools.WebTesting 命名空间