Réserver une Démo

SVP notez : Cette page d’aide n’est pas pour la dernière version d’Enterprise Architect. La dernière aide peut être trouvée ici.

Pré. Proc.

MethodTag Class

A MethodTag is a Tagged Value associated with a method.

Associated table in repository

t_operationtag

MethodTag Attributes:

Attribute

Remarks

See also

FQName

String

Notes: Read only

The fully-qualified name of the tag.

MethodID

Long

Notes: Read/Write

The ID of the associated method.

Name

String

Notes: Read/Write

The tag or name of the property.

Notes

String

Notes: Read/Write

Further descriptive notes about this tag.

If 'Value' is set to '<memo>', then 'Notes' should contain the actual Tagged Value content.

ObjectType

ObjectType

Notes: Read only

Distinguishes objects referenced through a Dispatch interface.

ObjectType

TagGUID

String

Notes: Read/Write

A unique GUID for this Tagged Value.

TagID

Long

Notes: Read only

A unique ID for this Tagged Value.

Value

String

Notes: Read/Write

The value assigned to this tag.

This field has a 255 character limit. If the value is greater than 255 characters long, set the value to "<memo>" and insert the body of text in the 'Notes' attribute.

When reading existing Tagged Values, if 'Value' = "<memo>" then the developer should read the actual body of text from the 'Notes' attribute.

MethodTag Methods:

Method

Remarks

See also

GetAttribute(string propName)

String

Notes: Returns the text of a single named property within a structured Tagged Value.

GetLastError()

String

Notes: Returns a string value describing the most recent error that occurred in relation to this object.

This function is rarely used as an exception is thrown when an error occurs.

HasAttributes()

Boolean

Notes: Returns True if the Tagged Value is a structured Tagged Value with one or more properties.

SetAttribute(string propName, string propValue)

Boolean

Notes: Sets the text of a single named property within a structured Tagged Value.

Update()

Boolean

Notes: Updates the current MethodTag object after modification or appending a new item.

If False is returned, check the 'GetLastError()' function for more information.