Class XmpHeaderPi
Namespace: Aspose.Imaging.Xmp
Assembly: Aspose.Imaging.dll (25.7.0)
Represents XMP header processing instruction.
public sealed class XmpHeaderPi : IXmlValue, IEquatable<XmpHeaderPi>
{
public XmpHeaderPi() { }
public XmpHeaderPi(string name, string value)
{
Name = name;
Value = value;
}
public string Name { get; set; }
public string Value { get; set; }
public bool Equals(XmpHeaderPi other)
{
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
return Name.Equals(other.Name) && Value.Equals(other.Value);
}
public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj)) return false;
if (ReferenceEquals(this, obj)) return true;
return obj.GetType() == GetType() && Equals((XmpHeaderPi)obj);
}
public override int GetHashCode()
{
unchecked
{
return (Name?.GetHashCode() * 397) ^ (Value?.GetHashCode() * 159);
}
}
}
Inheritance
Implements
Inherited Members
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
xpacket begin=“” id=“W5M0MpCehiHzreSzNTczkc9d”?
Constructors
XmpHeaderPi()
Initializes a new instance of the Aspose.Imaging.Xmp.XmpHeaderPi class.
public XmpHeaderPi()
{
}
XmpHeaderPi(string)
Initializes a new instance of the Aspose.Imaging.Xmp.XmpHeaderPi class.
public XmpHeaderPi(string guid)
{
}
Parameters
guid
string
The unique identifier.
Properties
Guid
Represents Header Guid.
public string Guid
{
get
{
}
set
{
}
}
Property Value
Remarks
The text of the header PI contains a GUID, making it unlikely to appear by accident in the data stream.
Methods
Equals(XmpHeaderPi)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(XmpHeaderPi other)
{
}
Parameters
other
XmpHeaderPi
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 obj)
{
}
Parameters
obj
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()
{
}
Assuming that there is some implementation within the `GetXmlValue()` method, it would be indented as follows:
public string GetXmlValue()
{
}
Returns
Returns the XMP value converted to the XML representation.