ProcessTemplate.GetResource Method (TeamFoundationRequestContext, String, array<Byte[]%, Int64%)
Gets a resource with the given name from inside the process template
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Function GetResource ( _
requestContext As TeamFoundationRequestContext, _
resourceName As String, _
<OutAttribute> ByRef hashValue As Byte(), _
<OutAttribute> ByRef contentLength As Long _
) As Stream
public Stream GetResource(
TeamFoundationRequestContext requestContext,
string resourceName,
out byte[] hashValue,
out long contentLength
)
public:
Stream^ GetResource(
TeamFoundationRequestContext^ requestContext,
String^ resourceName,
[OutAttribute] array<unsigned char>^% hashValue,
[OutAttribute] long long% contentLength
)
member GetResource :
requestContext:TeamFoundationRequestContext *
resourceName:string *
hashValue:byte[] byref *
contentLength:int64 byref -> Stream
public function GetResource(
requestContext : TeamFoundationRequestContext,
resourceName : String,
hashValue : byte[],
contentLength : long
) : Stream
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context
resourceName
Type: System.StringThe 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
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.