Gets the name of the computer the associated process is running on.
Assembly: System (in System.dll)
When the associated process is executing on the local machine, this property returns a period (".") for the machine name. You should use the Environment.MachineName property to get the correct machine name.
To use the following example you must first start at least one instance of Notepad on a remote computer. The example requests the name of the remote computer on which Notepad is running, and then displays the respective ProcessName, Id, and properties for each instance.
for full trust for the immediate caller. This member cannot be used by partially trusted code.
Available since 1.1