PropertyValue class

PropertyValue class

The PropertyValue represents a property value.

The PropertyValue type exposes the following members:

Constructors

Constructor Description
init Initializes a PropertyValue with an integer value.
init Initializes a new PropertyValue with a long integer value.
init Initializes a new PropertyValue with a boolean value.
init Initializes a PropertyValue with a double (float) value.
init Initializes a new PropertyValue with a string value.
init Initializes a new PropertyValue with the given value.
init Initializes a PropertyValue with a datetime value.
init Initializes a new PropertyValue instance with a timedelta value.
init Initializes a new PropertyValue with a list of strings.
init Initializes a PropertyValue with a byte array.
init Initializes a new PropertyValue with an array of double values.
init Initializes a new PropertyValue with an array of integer values.
init Initializes a new PropertyValue with an array of long values.
init Initializes a new PropertyValue instance with an array of unsigned 16‑bit integer values.

Methods

Method Description
accept_value Extracts the property value using a custom ValueAcceptor.
accept_value_value_acceptor
to_array
to_class
to_string Returns a string that represents the property value.
to_struct
to_struct

Properties

Property Description
raw_value The raw value.
type The type of the property.

Example

from datetime import datetime
from groupdocs.metadata.common import PropertyValue

# Create a PropertyValue containing the current date and time
value = PropertyValue(datetime.now())

Guides

Task guides that use PropertyValue:

See Also