Initializes a PropertyValue with an integer value.
def__init__(self,value):...
Parameter
Type
Description
value
int
An integer value.
Example
fromdatetimeimportdatetimefromgroupdocs.metadata.commonimportPropertyValue# Integer valueint_prop=PropertyValue(42)# The same constructor can also accept other types, e.g., a datetimedate_prop=PropertyValue(datetime.now())
init
Initializes a new PropertyValue with a long integer value.
def__init__(self,value):...
Parameter
Type
Description
value
int
A long integer value.
init
Initializes a new PropertyValue with a boolean value.
def__init__(self,value):...
Parameter
Type
Description
value
bool
A boolean value.
init
Initializes a PropertyValue with a double (float) value.
def__init__(self,value):...
Parameter
Type
Description
value
float
A float value.
init
Initializes a new PropertyValue with a string value.
Initializes a new PropertyValue with the given value.
def__init__(self,value):...
Parameter
Type
Description
value
Any
The value to store.
Example
fromdatetimeimportdatetimefromgroupdocs.metadata.commonimportPropertyValue# Create a PropertyValue containing the current date and timeprop_val=PropertyValue(datetime.now())```## __init__ {#value}InitializesaPropertyValuewithadatetimevalue.```pythondef__init__(self,value):...