通过提供的字节数组创建测试结果的附件。
命名空间: 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
内容字节数组中的起始点。
- length
类型:System.Int32
字节数组中所需段的长度。
返回值
类型:Microsoft.TeamFoundation.TestManagement.Client.ITestAttachment
一个测试附件对象。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。