CreateAttribute Method of XmlTicket Object (COM-based API)

This method creates a new DocumentAttribute object of specified type.

Visual Basic Syntax

Method CreateAttribute(
   Type As AttributeTypeEnum,
   Name As String,
   Value As String
) As DocumentAttribute

C++ Syntax

HRESULT CreateAttribute(
    AttributeTypeEnum Type,
    BSTR Name,
    BSTR Value,
    IDocumentAttribute** Result



[in] This variable specifies the type of the document attribute. See the AttributeTypeEnum description for the supported file formats.


[in] This parameter contains the attribute name.


[in] This parameter contains the value of the attribute.


[out] A pointer to an IDocumentAttribute* pointer variable that receives the interface pointer of the DocumentAttribute object.

Return Values

This method returns an DocumentAttribute object.

See also


See sample: Samples.

26.03.2024 13:49:49

Please leave your feedback about this article

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.