Discuss this help topic in SecureBlackbox Forum

TElMessagePart.GetData

TElMessagePart     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


Use this method to get contents of the part.

Declaration

[C#/Java]
    int GetData(ref string wsData);
    int GetData(ref byte[] Buffer, ref int BufferSize);

[VB.NET]
    Function GetData(ByRef wsData As String) As Integer
    Function GetData(ByRef Buffer As Byte(), ByRef BufferSize As Integer) As Integer

[Pascal]
    function GetData(var wsData: TString): ELMIMERESULT;
    function GetData(var Buffer: TBytes; var BufferSize: Integer): ELMIMERESULT;

[C++]
    int32_t GetData(sb_u16string &wsData);
    int32_t GetData(std::wstring &wsData);
    int32_t GetData(std::vector<uint8_t> &Buffer, int32_t &BufferSize);

[PHP]
    integer GetData(string &$wsData)
    integer GetData(array of byte|string &$Buffer, integer &$BufferSize)

Parameters

  • wsData - the buffer to which the data will be written.
  • Buffer - the buffer to which data will be written.
  • BufferSize - size of the Buffer

Return value

    Returns 0 (EL_OK) on success;
    Error otherwise.

Description

    Use this method to get contents of the part.
     Note, this method will return nothing for multipart part.

See also:     SetData     GetDataSize    

Discuss this help topic in SecureBlackbox Forum