Gets a RoleInstance object that represents the role instance in which the code is currently running.
public:
RoleInstance& GetCurrentRoleInstance()
Type: RoleInstance
A RoleInstance object that represents the role instance in which the code is currently running.
Header: Declared in RoleEnvironment.h.
Library: Use GSDK110.lib (VS 2012) or GSDK100.lib (VS 2010).