ITestRunBase.CreateAttachment 方法 (array<Byte , Int32, Int32)

通过字节数组创建测试结果的附件。

命名空间:  Microsoft.TeamFoundation.TestManagement.Client
程序集:  Microsoft.TeamFoundation.TestManagement.Client(在 Microsoft.TeamFoundation.TestManagement.Client.dll 中)

语法

声明
Function CreateAttachment ( _
    contents As Byte(), _
    offset As Integer, _
    length As Integer _
) As ITestAttachment
ITestAttachment CreateAttachment(
    byte[] contents,
    int offset,
    int length
)
ITestAttachment^ CreateAttachment(
    array<unsigned char>^ contents, 
    int offset, 
    int length
)
abstract CreateAttachment : 
        contents:byte[] * 
        offset:int * 
        length:int -> ITestAttachment 
function CreateAttachment(
    contents : byte[], 
    offset : int, 
    length : int
) : ITestAttachment

参数

  • contents
    类型:array<System.Byte[]
    包含附件内容的字节数组。
  • offset
    类型:System.Int32
    索引将用作附件内容(通常为 0)的第一个字节。

返回值

类型:Microsoft.TeamFoundation.TestManagement.Client.ITestAttachment
新的附件对象。

备注

当占有此附件的对象保存,内容将上载到TCM服务器。不应在此前修改该数组。

.NET Framework 安全性

请参见

参考

ITestRunBase 接口

CreateAttachment 重载

Microsoft.TeamFoundation.TestManagement.Client 命名空间