Class ScriptParameter
Defines a parameter for a script.
Inherited Members
Namespace: Unity.Services.Apis.Admin.CloudCode
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "ScriptParameter")]
[Preserve]
public class ScriptParameter
Constructors
ScriptParameter(string, TypeEnum?, bool)
Initializes a new instance of the Script
Declaration
[Preserve]
public ScriptParameter(string name = null, ScriptParameter.TypeEnum? type = TypeEnum.ANY, bool required = false)
Parameters
Type | Name | Description |
---|---|---|
string | name | Name of the script parameter. (required). |
Script |
type | The type of the parameter. (default to TypeEnum.ANY). |
bool | required | A flag indicating if the parameter is required when running a Script.. |
Properties
Name
Name of the script parameter.
Declaration
[DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string | Name of the script parameter. |
Required
A flag indicating if the parameter is required when running a Script.
Declaration
[DataMember(Name = "required", EmitDefaultValue = true)]
[Preserve]
public bool Required { get; set; }
Property Value
Type | Description |
---|---|
bool | A flag indicating if the parameter is required when running a Script. |
Type
The type of the parameter.
Declaration
[DataMember(Name = "type", EmitDefaultValue = false)]
[Preserve]
public ScriptParameter.TypeEnum? Type { get; set; }
Property Value
Type | Description |
---|---|
Script |
The type of the parameter. |