Class Preview
public class Preview : File- Inheritance
- 
      
      
      
      
      
      Preview
- Inherited Members
Constructors
Preview()
public Preview()Preview(ROCrate?, string?, JsonObject?, string?, string?, bool, bool)
public Preview(ROCrate? crate = null, string? identifier = null, JsonObject? properties = null, string? source = null, string? destPath = null, bool fetchRemote = false, bool validateUrl = false)Parameters
- crateROCrate
- identifierstring
- propertiesJsonObject
- sourcestring
- destPathstring
- fetchRemotebool
- validateUrlbool
Fields
FileName
protected const string FileName = "ro-crate-preview.html"Field Value
Methods
Deserialize(string, ROCrate)
Create a Preview from JSON properties.
public static Preview? Deserialize(string entityJson, ROCrate roCrate)Parameters
Returns
Serialize()
Convert Preview to JSON string.
public override string Serialize()Returns
Write(string)
Write the HTML preview of the RO-Crate.
public override void Write(string basePath)Parameters
- basePathstring
- The directory where the preview file will be written. 
_empty()
protected JsonObject _empty()