PropertyValue class

PropertyValue class

The property value.

The PropertyValue type exposes the following members:

Constructors

Constructor Description
init Initializes a PropertyValue with an integer value.
init Initializes a PropertyValue with a long value.
init Initializes a new PropertyValue with a boolean value.
init Initializes a PropertyValue with a double value.
init Initializes a PropertyValue with a string value.
init Initializes a new PropertyValue with the given value.
init Initializes a new PropertyValue with a datetime value.
init Initializes a new PropertyValue instance with a datetime.timedelta value.
init Initializes a PropertyValue with a list of strings.
init Initializes a PropertyValue with a byte array.
init Initializes a PropertyValue with an array of double values.
init Initializes a PropertyValue with an array of integer values.
init Initializes a PropertyValue with an array of long values.
init Initializes a PropertyValue 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, represented by MetadataPropertyType.

Example

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

# Create a PropertyValue from a datetime object
value = PropertyValue(datetime.now())
print(value)

Guides

Task guides that use PropertyValue:

See Also