Rename changes the definition and all references, and declaration when programming in C/C++, C# and VB. Rename optionally changes comments and strings.
So in your example, it will only change the name in the function. But if you were to change a name of a class member, then it will change it in your entire solution.
Reference : http://www.wholetomato.com/products/features/rename.asp