TeamFoundationStrongBoxService.RetrieveFile Method

Retrieve a file from a drawer as a string. This method downloads value as a file to the local system, and then reads its contents into the string.

Namespace:  Microsoft.TeamFoundation.Framework.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

Syntax

'Declaration
Public Function RetrieveFile ( _
    drawerId As Guid, _
    lookupKey As String _
) As String
public string RetrieveFile(
    Guid drawerId,
    string lookupKey
)
public:
String^ RetrieveFile(
    Guid drawerId, 
    String^ lookupKey
)
member RetrieveFile : 
        drawerId:Guid * 
        lookupKey:string -> string
public function RetrieveFile(
    drawerId : Guid, 
    lookupKey : String
) : String

Parameters

  • drawerId
    Type: System.Guid

    The unique identifier returned from CreateDrawer or UnlockDrawer.

  • lookupKey
    Type: System.String

    The identifier that is used to look up the value in the drawer.

Return Value

Type: System.String

.NET Framework Security

See Also

Reference

TeamFoundationStrongBoxService Class

Microsoft.TeamFoundation.Framework.Client Namespace