Class XmpMeta
Namespace: Aspose.Imaging.Xmp
Assembly: Aspose.Imaging.dll (25.7.0)
Represents xmpmeta. Optional.The purpose of this element is to identify XMP metadata within general XML text that might contain other non-XMP uses of RDF.
public sealed class XmpMeta : XmpElementBase, IEquatable<XmpElementBase>, IXmlValue, IEquatable<XmpMeta>
{
}
Inheritance
object ← XmpElementBase ← XmpMeta
Implements
IEquatable
Inherited Members
XmpElementBase.AddAttribute(string, string) , XmpElementBase.GetAttribute(string) , XmpElementBase.ClearAttributes() , XmpElementBase.Equals(XmpElementBase) , XmpElementBase.Equals(object) , XmpElementBase.GetHashCode() , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
XmpMeta(string)
Initializes a new instance of the Aspose.Imaging.Xmp.XmpMeta class.
public XmpMeta(string toolkitVersion)
{
}
Parameters
toolkitVersion
string
Adobe XMP toolkit version.
XmpMeta()
Initializes a new instance of the Aspose.Imaging.Xmp.XmpMeta class.
public XmpMeta()
{
}
Properties
AdobeXmpToolkit
Gets or set Adobe Xmp toolkit version.
public string AdobeXmpToolkit
{
get;
set;
}
Property Value
Methods
AddAttribute(string, string)
Adds the attribute.
public override void AddAttribute(string attribute, string value)
{
}
Parameters
attribute
string
The attribute.
value
string
The value.
Equals(XmpMeta)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(XmpMeta other)
{
return this.xmpPacket == other.xmpPacket && this.Namespaces == other.Namespaces;
}
Parameters
other
XmpMeta
An object to compare with this object.
Returns
true if the current object is equal to the other’ parameter; otherwise, false.
Equals(object)
Determines whether the specified System.Object, is equal to this instance.
public override bool Equals(object other)
{
if (other is MyClass myOtherClass)
{
return this.Property1 == myOtherClass.Property1 &&
this.Property2 == myOtherClass.Property2;
}
return false;
}
Parameters
other
object
The System.Object to compare with this instance.
Returns
’true’ if the specified System.Object is equal to this instance; otherwise, ‘false’.
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()
{
}
Returns
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
GetXmlValue()
Converts XMP value to the XML representation.
public string GetXmlValue()
{
}
In this case, since your input code already follows standard C# conventions, there's no need for reformatting. However, I would format it consistently with the standard:
public string GetXmlValue()
{
}
Returns
Returns the XMP value converted to the XML representation.