PropertyValue class
Leave feedback
On this page
The property value.
The PropertyValue type exposes the following members:
| 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. |
| 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 |
| Property | Description |
|---|---|
| raw_value | The raw value. |
| type | The type of the property, represented by MetadataPropertyType. |
from datetime import datetime
from groupdocs.metadata.common import PropertyValue
# Create a PropertyValue from a datetime object
value = PropertyValue(datetime.now())
print(value)
Task guides that use PropertyValue:
- module
groupdocs.metadata.common
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.