how to change the resolution of screen in c#?

hello

i want to know how to change the resolution of screen to make it 320*280 in c#?

and if i can rotate the screen to 90?

thanks,

Just call Screen.SetResolution(320, 280);. More info here: Unity - Scripting API: Screen.SetResolution

which object i which put this script in it

and what should i change “example” to in this code

void Example()