共用方式為


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
    類型:String

    BinaryHttpBody 的內容類型。

  • initialValue
    類型:array<Byte[]

    要修改的位元組,這些位元組是 BinaryHttpBody 的承載。

傳回值

類型:Object
UserControl 物件,可顯示及編輯指定內容類型的位元組陣列值。

備註

這個控制項將會裝載於提供 [確定] 和 [取消] 按鈕的外掛程式對話方塊中。

.NET Framework 安全性

請參閱

參考

IBinaryHttpBodyEditorPlugin 介面

Microsoft.VisualStudio.TestTools.WebTesting 命名空間