Show / Hide Table of Contents

Class ForcedConstant

Describe a constant to be overriden when running the task.
This is meant to be used for development only and require specific permissions.

Inheritance
object
ForcedConstant
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: QarnotSDK
Assembly: QarnotSDK.dll
Syntax
public class ForcedConstant

Constructors

ForcedConstant(string, string, bool?, ForcedConstantAccess?)

Declaration
public ForcedConstant(string constantName = null, string forcedValue = null, bool? forceExportInEnvironment = null, ForcedConstant.ForcedConstantAccess? access = null)
Parameters
Type Name Description
string constantName
string forcedValue
bool? forceExportInEnvironment
ForcedConstant.ForcedConstantAccess? access

Properties

Access

Change the access of the constant from read-write to read-only or vice-versa. The behaviour is unchanged if the field is not present or null.

Declaration
public ForcedConstant.ForcedConstantAccess? Access { get; set; }
Property Value
Type Description
ForcedConstant.ForcedConstantAccess?

ConstantName

The name of the constant to override.

Declaration
public string ConstantName { get; set; }
Property Value
Type Description
string

ForceExportInEnvironment

Change whether the constant should be exported to the environment or not. The behaviour is unchanged if the field is not present or null.

Declaration
public bool? ForceExportInEnvironment { get; set; }
Property Value
Type Description
bool?

ForcedValue

The new value for the constant. The value is unchanged if the field is not present or null.

Declaration
public string ForcedValue { get; set; }
Property Value
Type Description
string
In this article
Back to top Generated by DocFX