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
);
Parameters
Type
[in] This variable specifies the type of the document attribute. See the AttributeTypeEnum description for the supported file formats.
Name
[in] This parameter contains the attribute name.
Value
[in] This parameter contains the value of the attribute.
Result
[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.
3/26/2024 1:49:49 PM