Change material shader rendering mode through code

Hey - can you edit a material shader’s rendering mode through code? Seems obvious but I cant seem to find a property for it. All I want to do is change the Rendering Mode from Opaque to Transparent under certain conditions. I know I can just set a different material but that doesn’t seem like it would be necessary.

Thanks

Is this what you’re looking for? Unity - Scripting API: Material.renderQueue