Search Results for

    Show / Hide Table of Contents

    Class TemplateVariable

    Variable for use with email template

    Inheritance
    object
    TemplateVariable
    Implements
    IValidatableObject
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: mailslurp.Model
    Assembly: mailslurp.dll
    Syntax
    [DataContract(Name = "TemplateVariable")]
    public class TemplateVariable : IValidatableObject

    Constructors

    View Source

    TemplateVariable()

    Initializes a new instance of the TemplateVariable class.

    Declaration
    [JsonConstructor]
    protected TemplateVariable()
    View Source

    TemplateVariable(string, VariableTypeEnum)

    Initializes a new instance of the TemplateVariable class.

    Declaration
    public TemplateVariable(string name = null, TemplateVariable.VariableTypeEnum variableType = (TemplateVariable.VariableTypeEnum)0)
    Parameters
    Type Name Description
    string name

    Name of variable. This can be used in a template as {{name}} (required).

    TemplateVariable.VariableTypeEnum variableType

    The type of variable (required).

    Properties

    View Source

    Name

    Name of variable. This can be used in a template as {{name}}

    Declaration
    [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
    public string Name { get; set; }
    Property Value
    Type Description
    string

    Name of variable. This can be used in a template as {{name}}

    View Source

    VariableType

    The type of variable

    Declaration
    [DataMember(Name = "variableType", IsRequired = true, EmitDefaultValue = true)]
    public TemplateVariable.VariableTypeEnum VariableType { get; set; }
    Property Value
    Type Description
    TemplateVariable.VariableTypeEnum

    The type of variable

    Methods

    View Source

    ToJson()

    Returns the JSON string presentation of the object

    Declaration
    public virtual string ToJson()
    Returns
    Type Description
    string

    JSON string presentation of the object

    View Source

    ToString()

    Returns the string presentation of the object

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    String presentation of the object

    Overrides
    object.ToString()

    Implements

    IValidatableObject
    • View Source
    In this article
    Back to top See MailSlurp website for more information.