System.Diagnostics.Process.GetCurrentProcess C# (CSharp) Method

GetCurrentProcess() public static method

public static GetCurrentProcess ( ) : System.Diagnostics.Process
return System.Diagnostics.Process
        public static System.Diagnostics.Process GetCurrentProcess() { throw null; }
        public static System.Diagnostics.Process GetProcessById(int processId) { throw null; }

Usage Example

Esempio n. 1
0
        public static Version GetVisualStudioVersion()
        {
            Process         process = Process.GetCurrentProcess();
            FileVersionInfo v       = process.MainModule.FileVersionInfo;

            return(new Version(v.ProductMajorPart, v.ProductMinorPart, v.ProductBuildPart));
        }
All Usage Examples Of System.Diagnostics.Process::GetCurrentProcess