public sealed class EnvironmentVariable : IMessage<EnvironmentVariable>, IEquatable<EnvironmentVariable>, IDeepCloneable<EnvironmentVariable>, IBufferMessage, IMessage
Reference documentation and code samples for the Security Command Center v2 API class EnvironmentVariable.
A name-value pair representing an environment variable used in an operating
system process.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation provides details for the \u003ccode\u003eEnvironmentVariable\u003c/code\u003e class within the Security Command Center v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEnvironmentVariable\u003c/code\u003e class represents a name-value pair for environment variables used in operating system processes, as a part of the \u003ccode\u003eGoogle.Cloud.SecurityCenter.V2\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties for \u003ccode\u003eName\u003c/code\u003e and \u003ccode\u003eVal\u003c/code\u003e, both of which are JSON-encoded strings representing the environment variable's name and value respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation lists the \u003ccode\u003eEnvironmentVariable\u003c/code\u003e class's inheritance from \u003ccode\u003eobject\u003c/code\u003e and the interfaces it implements, such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are two versions available, with version \u003ccode\u003e1.1.0\u003c/code\u003e being the latest.\u003c/p\u003e\n"]]],[],null,["# Security Command Center v2 API - Class EnvironmentVariable (1.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.EnvironmentVariable)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.1.0/Google.Cloud.SecurityCenter.V2.EnvironmentVariable)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.0.0/Google.Cloud.SecurityCenter.V2.EnvironmentVariable) \n\n public sealed class EnvironmentVariable : IMessage\u003cEnvironmentVariable\u003e, IEquatable\u003cEnvironmentVariable\u003e, IDeepCloneable\u003cEnvironmentVariable\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Security Command Center v2 API class EnvironmentVariable.\n\nA name-value pair representing an environment variable used in an operating\nsystem process. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e EnvironmentVariable \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[EnvironmentVariable](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.EnvironmentVariable), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[EnvironmentVariable](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.EnvironmentVariable), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[EnvironmentVariable](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.EnvironmentVariable), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.SecurityCenter.V2](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.SecurityCenter.V2.dll\n\nConstructors\n------------\n\n### EnvironmentVariable()\n\n public EnvironmentVariable()\n\n### EnvironmentVariable(EnvironmentVariable)\n\n public EnvironmentVariable(EnvironmentVariable other)\n\nProperties\n----------\n\n### Name\n\n public string Name { get; set; }\n\nEnvironment variable name as a JSON encoded string.\n\n### Val\n\n public string Val { get; set; }\n\nEnvironment variable value as a JSON encoded string."]]