ServicePRO SDK Help

RequestServicesManager..::..GetAttachmentFile Method

Gets the attachment file by attachment identifier.

Namespace:  ServicePRO.Sdk.Windows.Managers
Assembly:  ServicePRO.Sdk.Windows (in ServicePRO.Sdk.Windows.dll)

Syntax


public void GetAttachmentFile(
	string userSessionKey,
	int attachmentId,
	Action<byte[], Exception> callbackAction
)
Public Sub GetAttachmentFile ( _
	userSessionKey As String, _
	attachmentId As Integer, _
	callbackAction As Action(Of Byte(), Exception) _
)

Parameters

userSessionKey
Type: String
User’s Session Key.
Key property of the User Session Object of type stcSession.
The User Session has to be established by making a call to InitializeSystemAndSession() method in CoreServicesManager class as a first step with using ServicePRO SDK.
attachmentId
Type: Int32
The attachment identifier.
callbackAction
Type: Action<(Of <(<'array<Byte>[]()[][], Exception>)>)>
The callback action.