IDataTemplate Interface
.NET Standard 2.x
Defines a data template, for exporting data from the JSON or XML format.
Namespace: SnapObjects.Data
Assembly: SnapObjects.Data.dll
Syntax
public interface IDataTemplate;
Properties
Name | Return Type | Description |
---|---|---|
Content | string | Gets the content of the data template. |
FilePath | string | Gets the file path of the data template. |
Methods
Name | Return Type | Description |
---|---|---|
LoadContent(string content) | void | Loads the template from a string. |
LoadFile(string filePath) | void | Loads the template from a file. |
LoadFile(string filePath, Encoding encoding) | void | Loads the template from a file and specifies the encoding for the content. |
SetParameter(string name, object value) | void | Sets parameter values for the XML template. |