/// <summary> /// Sets the image metadata of the file. /// </summary> /// <param name="metadata">The metadata.</param> /// <param name="hash">The hash string.</param> public static void SetImageMetadata(this FileMetadata metadata, ImageMetadata data) { SetCustomPropertyValue(metadata, FileMetadataCustomPropertyKey_ImageMetadata, data); }
/// <summary> /// Tries to get the image metadata of the file. /// </summary> /// <param name="metadata">The metadata.</param> /// <param name="hash">The hash string.</param> /// <returns>True if the metadata contains a non empty hash string.</returns> public static bool TryGetImageMetadata(this FileMetadata metadata, out ImageMetadata data) { return(TryGetCustomPropertyValue(metadata, FileMetadataCustomPropertyKey_ImageMetadata, out data)); }