ProcessExecutionEnvironmentVariable.cs (1380B)
1 // ----------------------------------------------------------------------------- 2 // <copyright file="ProcessExecutionEnvironmentVariable.cs" company="Microsoft Corporation"> 3 // Copyright (c) Microsoft Corporation. Licensed under the MIT License. 4 // </copyright> 5 // ----------------------------------------------------------------------------- 6 7 namespace Microsoft.Management.Configuration.Processor.DSCv3.Helpers 8 { 9 /// <summary> 10 /// Contains custom environment variable info for ProcessExecution. 11 /// </summary> 12 internal class ProcessExecutionEnvironmentVariable 13 { 14 /// <summary> 15 /// Gets the name of the environment variable. 16 /// </summary> 17 required public string Name { get; init; } 18 19 /// <summary> 20 /// Gets the value of the environment variable. 21 /// </summary> 22 required public string Value { get; init; } 23 24 /// <summary> 25 /// Gets the value type of the environment variable. 26 /// </summary> 27 public ProcessExecutionEnvironmentVariableValueType ValueType { get; init; } = ProcessExecutionEnvironmentVariableValueType.Override; 28 29 /// <summary> 30 /// Gets the separator of the environment variable if value type is prepend or append. 31 /// </summary> 32 public string Separator { get; init; } = ";"; 33 } 34 }