从过程模板内部获取与给定的资源。
命名空间: Microsoft.TeamFoundation.Server.Core
程序集: Microsoft.TeamFoundation.Server.Core(在 Microsoft.TeamFoundation.Server.Core.dll 中)
语法
声明
Function GetResource ( _
resourceName As String, _
<OutAttribute> ByRef hashValue As Byte(), _
<OutAttribute> ByRef contentLength As Long _
) As Stream
Stream GetResource(
string resourceName,
out byte[] hashValue,
out long contentLength
)
参数
- resourceName
类型:System.String
要检索的资源的名称。
- hashValue
类型:array<System.Byte[]%
资源的哈希值。
- contentLength
类型:System.Int64%
resources 目录的未压缩的长度。
返回值
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。