Partager via


ProcessTemplate.GetResource Method (String, array<Byte %, Int64%)

Gets a resource with the given name from inside the process template

Namespace:  Microsoft.TeamFoundation.Server.Core
Assembly:  Microsoft.TeamFoundation.Server.Core (in Microsoft.TeamFoundation.Server.Core.dll)

Syntax

'Declaration
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
)
public:
virtual Stream^ GetResource(
    String^ resourceName, 
    [OutAttribute] array<unsigned char>^% hashValue, 
    [OutAttribute] long long% contentLength
) sealed
abstract GetResource : 
        resourceName:string * 
        hashValue:byte[] byref * 
        contentLength:int64 byref -> Stream  
override GetResource : 
        resourceName:string * 
        hashValue:byte[] byref * 
        contentLength:int64 byref -> Stream
public final function GetResource(
    resourceName : String, 
    hashValue : byte[], 
    contentLength : long
) : Stream

Parameters

  • resourceName
    Type: System.String

    The name of the resource to retrieve

  • hashValue
    Type: array<System.Byte[]%

    The hash value of the resource

  • contentLength
    Type: System.Int64%

    The uncompressed length of the resource content

Return Value

Type: System.IO.Stream
Returns Stream.

Implements

IProcessTemplate.GetResource(String, array<Byte[]%, Int64%)

.NET Framework Security

See Also

Reference

ProcessTemplate Class

GetResource Overload

Microsoft.TeamFoundation.Server.Core Namespace