Skip to content

ApplicationService.SetAttachment Method (Application, String, Byte[], Byte[])

Attach a file to a given application

Namespace: Citrix.SDK.AppDNA
Assembly: Citrix.SDK.AppDNA (in Citrix.SDK.AppDNA.dll) Version: 7.11.0.0 (7.11.0.0)

Syntax

C

public ApplicationAttachment SetAttachment(
    Application application,
    string filename,
    byte[] valueToAttach,
    byte[] hash
)

VB

Public Function SetAttachment ( 
    application As Application,
    filename As String,
    valueToAttach As Byte(),
    hash As Byte()
) As ApplicationAttachment

Parameters

 

application
Type: Citrix.SDK.AppDNA.Application
Application object.
filename
Type: System.String
Name of the file to be attached.
valueToAttach
Type: System.Byte[]
Value to be attached.
hash
Type: System.Byte[]
Hash of the file.

Return Value

Type: ApplicationAttachment

Remarks

Prefer to use SetAttachment(Application application, FileInfo file) overload as more tuned for performance needs

See Also

Reference

ApplicationService Class
SetAttachment Overload
Citrix.SDK.AppDNA Namespace

Was this article helpful?