Class ConstantScriptType
- Namespace
- Dynamicweb.DataIntegration.Integration.ScriptTypes
- Assembly
- Dynamicweb.DataIntegration.dll
[AddInLabel("Constant")]
public class ConstantScriptType : ScriptTypeProvider<string>
- Inheritance
-
ConstantScriptType
- Inherited Members
Properties
DisableSource
Gets a value indicating whether the provider produces its value independently of a source column.
When true (for example the Constant and NewGuid script types), the mapping does not require a source
column and readers/writers skip reading the source value for the mapping. The default is false.
public override bool DisableSource { get; }
Property Value
ScriptValue
[AddInParameter("ScriptValue")]
[AddInLabel("Script value")]
[AddInParameterGroup("Scripting")]
[AddInParameterEditor(typeof(TextParameterEditor), "textArea=true")]
public string ScriptValue { get; set; }
Property Value
Methods
GetValueTyped(object?)
Transforms a source value into the typed value written to the destination column. Called once per row during job execution. See GetValue(object?) for the contract.
public override string GetValueTyped(object? input)
Parameters
Returns
- string
The value to write to the destination column.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.