XmpRightsManagementPackage Class

Summary: Represents XMP Rights Management namespace.

Module: aspose.imaging.xmp.schemas.xmprm

Full Name: aspose.imaging.xmp.schemas.xmprm.XmpRightsManagementPackage

Inheritance: IXmlValue, XmpPackage

Constructors

NameDescription
XmpRightsManagementPackage()Initializes a new instance of the XmpRightsManagementPackage class.

Properties

NameTypeAccessDescription
countintrGets the XMP key count.
namespace_uristringrGets the namespace URI.
prefixstringrGets the prefix.
xml_namespacestringrGets the XML namespace.

Methods

NameDescription
add_value(key, value)Adds string property.
add_value(key, value)Adds string property.
clear()Clears this instance.
contains_key(key)Determines whether this collection specified key.
get_prop_value(key)Gets the object with the specified key.
get_xml_value()Converts XMP value to the XML representation.
remove(key)Remove the value with the specified key.
set_certificate(certificate)Sets the certificate.
set_marked_as_right_management(value)Marks as right management content
set_owners(owners)Sets owners.
set_prop_value(key, value)Gets or sets the object with the specified key.
set_usage_terms(usage_terms)Sets the usage terms.
set_value(key, value)Sets the value.
set_value(key, value)Sets the value.
set_web_statement(web_statement_url)Sets the web statement.
set_xmp_type_value(key, value)Sets the XMP type value.
try_get_value(key, value)Gets the value by the key.

Constructor: XmpRightsManagementPackage()

 XmpRightsManagementPackage() 

Initializes a new instance of the XmpRightsManagementPackage class.

Method: add_value(key, value)

 add_value(key, value) 

Adds string property.

Parameters:

ParameterTypeDescription
keystringThe string representation of key that is identified with added value.
valuestringThe string value.

Method: add_value(key, value)

 add_value(key, value) 

Adds string property.

Parameters:

ParameterTypeDescription
keystringThe string representation of key that is identified with added value.
valueSystem.ObjectThe string value.

Method: contains_key(key)

 contains_key(key) 

Determines whether this collection specified key.

Parameters:

ParameterTypeDescription
keystringThe key to be checked.

Returns

TypeDescription
boolTrue if the contains the specified key; otherwise, False.

Method: get_prop_value(key)

 get_prop_value(key) 

Gets the object with the specified key.

Parameters:

ParameterTypeDescription
keystringThe key that identifies value.

Returns

TypeDescription
System.ObjectReturns the object with the specified key.

Method: get_xml_value()

 get_xml_value() 

Converts XMP value to the XML representation.

Returns

TypeDescription
stringReturns the XMP value converted to the XML representation.

Method: remove(key)

 remove(key) 

Remove the value with the specified key.

Parameters:

ParameterTypeDescription
keystringThe string representation of key that is identified with removed value.

Returns

TypeDescription
boolReturns true if the value with the specified key was removed.

Method: set_certificate(certificate)

 set_certificate(certificate) 

Sets the certificate.

Parameters:

ParameterTypeDescription
certificatestringThe certificate.

Method: set_marked_as_right_management(value)

 set_marked_as_right_management(value) 

Marks as right management content

Parameters:

ParameterTypeDescription
valueboolif set to true that this is a rights-managed resource.

Method: set_owners(owners)

 set_owners(owners) 

Sets owners.

Parameters:

ParameterTypeDescription
ownersstring[]The owners.

Method: set_prop_value(key, value)

 set_prop_value(key, value) 

Gets or sets the object with the specified key.

Parameters:

ParameterTypeDescription
keystringThe key that identifies value.
valueSystem.ObjectThe object with the specified key.

Method: set_usage_terms(usage_terms)

 set_usage_terms(usage_terms) 

Sets the usage terms.

Parameters:

ParameterTypeDescription
usage_termsLangAltThe usage terms.

Method: set_value(key, value)

 set_value(key, value) 

Sets the value.

Parameters:

ParameterTypeDescription
keystringThe string representation of key that is identified with added value.
valueIXmlValueThe value to add to.

Method: set_value(key, value)

 set_value(key, value) 

Sets the value.

Parameters:

ParameterTypeDescription
keystringThe string representation of key that is identified with added value.
valueIXmpTypeThe value to add to.

Method: set_web_statement(web_statement_url)

 set_web_statement(web_statement_url) 

Sets the web statement.

Parameters:

ParameterTypeDescription
web_statement_urlstringThe web statement URL.

Method: set_xmp_type_value(key, value)

 set_xmp_type_value(key, value) 

Sets the XMP type value.

Parameters:

ParameterTypeDescription
keystringThe string representation of key that is identified with set value.
valueXmpTypeBaseThe value to set to.

Method: try_get_value(key, value)

 try_get_value(key, value) 

Gets the value by the key.

Parameters:

ParameterTypeDescription
keystringThe XMP element key.
valueSystem.ObjectThe XMP value.

Returns

TypeDescription
boolTrue, if the contains the key; otherwise, False.