Discuss this help topic in SecureBlackbox Forum

TElMessageHeader.SetField

TElMessageHeader     See also     


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


Sets header field value.

Declaration

[C#/Java]
    TElMessageHeaderField SetField([in] string Name, [in] string Value, int Index /* = 0 */, bool ClearParams /* = False*/ );

[VB.NET]
    Function SetField(ByVal Name As String, ByVal Value As String, ByVal Index As Integer = 0, ByVal ClearParams As Boolean = False) As TElMessageHeaderField

[Pascal]
    function SetField(const Name, Value: TString; Index: Integer = 0; ClearParams: Boolean = False): TElMessageHeaderField;

[C++]
    TElMessageHeaderFieldHandle SetField(const sb_u16string &Name, const sb_u16string &Value, int32_t Index, bool ClearParams);
    TElMessageHeaderFieldHandle SetField(const std::wstring &Name, const std::wstring &Value, int32_t Index, bool ClearParams);

[PHP]
    TElMessageHeaderField SetField(string $Name, string $Value, integer $Index, bool $ClearParams)

Parameters

  • Name - field name.
  • Value - new field value.
  • Index - index of the field that must be changed among fields of the same name.
  • ClearParams - determines if field parameters will be deleted.
    Default value - False.

Description

    Use this method to set value of the existing field. You can either delete all field parameters or leave them without changing.

See also:     GetField    

Discuss this help topic in SecureBlackbox Forum