1. TemplateVariable

Class TemplateVariable

Version:
日本語翻訳に関する免責事項

このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。

Model for template variables in e-mail templates.

Inheritance
System.Object
TemplateVariable
Namespace: Stylelabs.M.Sdk.Contracts.Notifications
Assembly: Stylelabs.M.Sdk.dll
Syntax
public class TemplateVariable : object

Constructors

TemplateVariable()

Creates a brand new instance.

Declaration
public TemplateVariable()

TemplateVariable(JObject)

Creates a new instance using an existing property value.

Declaration
public TemplateVariable(JObject jObject)
Parameters
TypeNameDescription
JObjectjObject

The property value.

Properties

Name

Name of the variable.

Declaration
public string Name { get; set; }
Property Value
TypeDescription
System.String

Template

Gets or sets the template for the variable. For DateTime this can be a formatting, or it can be the name of the variable in the backend to be injected.

Declaration
public string Template { get; set; }
Property Value
TypeDescription
System.String

Templated

Gets or sets whether the variable is a template. This means that the value is injected by the backend and/or needs formatting.

Declaration
public bool? Templated { get; set; }
Property Value
TypeDescription
System.Nullable<System.Boolean>

VariableType

Type of the variable.

Declaration
public TemplateVariableType? VariableType { get; set; }
Property Value
TypeDescription
System.Nullable<TemplateVariableType>

Methods

GetJObject()

Gets the values of this object as an .

Declaration
public JObject GetJObject()
Returns
TypeDescription
JObject
この記事を改善するための提案がある場合は、 お知らせください!