ImageMagick.Environment.NativeEnvironment.SetEnv C# (CSharp) Method

SetEnv() public static method

public static SetEnv ( string name, string value ) : void
name string
value string
return void
      public static void SetEnv(string name, string value)
      {
        using (INativeInstance nameNative = UTF8Marshaler.CreateInstance(name))
        {
          using (INativeInstance valueNative = UTF8Marshaler.CreateInstance(value))
          {
            #if ANYCPU
            if (NativeLibrary.Is64Bit)
            #endif
            #if WIN64 || ANYCPU
            NativeMethods.X64.Environment_SetEnv(nameNative.Instance, valueNative.Instance);
            #endif
            #if ANYCPU
            else
            #endif
            #if !WIN64 || ANYCPU
            NativeMethods.X86.Environment_SetEnv(nameNative.Instance, valueNative.Instance);
            #endif
          }
        }
      }
    }
Environment.NativeEnvironment