A JSON string representing the template and its configuration.
Example





In This Topic

SetTemplate(String) Method

In This Topic
Sets the template and its configuration from a JSON string for use in replacement operations.
Syntax
'Declaration

 

Public Overloads Function SetTemplate( _

   ByVal templateAsJsonString As String _

) As GdPictureStatus
public GdPictureStatus SetTemplate( 

   string templateAsJsonString

)
public function SetTemplate( 

    templateAsJsonString: String

): GdPictureStatus; 
public function SetTemplate( 

   templateAsJsonString : String

) : GdPictureStatus;
public: GdPictureStatus SetTemplate( 

   string* templateAsJsonString

) 
public:

GdPictureStatus SetTemplate( 

   String^ templateAsJsonString

) 

Parameters

templateAsJsonString
A JSON string representing the template and its configuration.
Example
Example JSON
{

    "config": {

        "delimiter": {

            "start": "{{",

            "end": "}}"

        }

    },

    "model": {

        "placeholder1": "Value 1",

        "placeholder2": "Value 2"

    }

}
JSON schema
{

	'$schema': 'http://json-schema.org/draft-04/schema#',

	'type': 'object',

	'properties': {

		'config': {

			'type': 'object',

			'properties': {

				'delimiter': {

					'type': 'object',

					'properties': {

						'start': { 'type': 'string', 'minLength': 1 },

						'end': { 'type': 'string', 'minLength': 1 }

					},

					'required': [ 'start', 'end' ]

				}

			},

			'required': [ 'delimiter' ]

		},

		'model': {

			'type': 'object',

			'minProperties': 1

		}

	},

	'required': [ 'config', 'model' ]

}
See Also