IBinaryHttpBodyEditorPlugin.CreateEditor 方法

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

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

语法

声明
Function CreateEditor ( _
    contentType As String, _
    initialValue As Byte() _
) As Object
Object CreateEditor(
    string contentType,
    byte[] initialValue
)
Object^ CreateEditor(
    String^ contentType, 
    array<unsigned char>^ initialValue
)
abstract CreateEditor : 
        contentType:string * 
        initialValue:byte[] -> Object 
function CreateEditor(
    contentType : String, 
    initialValue : byte[]
) : Object

参数

  • contentType
    类型:System.String
    BinaryHttpBody 的内容类型。
  • initialValue
    类型:array<System.Byte[]
    要修改的字节,这些字节是 BinaryHttpBody 的负载。

返回值

类型:System.Object
可以显示和编辑指定内容类型的字节数组值的 UserControl 对象。

备注

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

.NET Framework 安全性

请参见

参考

IBinaryHttpBodyEditorPlugin 接口

Microsoft.VisualStudio.TestTools.WebTesting 命名空间