ProcessTemplate.GetResource 方法 (String, array<Byte[]%, Int64%)
從流程範本中取得具有指定名稱的資源
命名空間: Microsoft.TeamFoundation.Server.Core
組件: Microsoft.TeamFoundation.Server.Core (在 Microsoft.TeamFoundation.Server.Core.dll 中)
語法
'宣告
Public Function GetResource ( _
resourceName As String, _
<OutAttribute> ByRef hashValue As Byte(), _
<OutAttribute> ByRef contentLength As Long _
) As Stream
public Stream GetResource(
string resourceName,
out byte[] hashValue,
out long contentLength
)
參數
- resourceName
類型:System.String
要擷取之資源的名稱
- hashValue
類型:array<System.Byte[]%
資源的雜湊值。
- contentLength
類型:System.Int64%
資源內容的未壓縮的長度。
傳回值
類型:System.IO.Stream
傳回 Stream。
實作
IProcessTemplate.GetResource(String, array<Byte[]%, Int64%)
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。