25 January 2011

How do I – Get A Process ID in C#

Got this question recently… answer is by simply using the System.Diagnostics namespace…
System.Diagnostics.Process.GetProcessesByName("ProcessName")[0].Id;


Cheers
C

No comments:

Post a Comment

Comments are moderated only for the purpose of keeping pesky spammers at bay.

SharePoint Remote Event Receivers are DEAD!!!

 Well, the time has finally come.  It was evident when Microsoft started pushing everyone to WebHooks, but this FAQ and related announcement...