RoleEnvironment::GetCurrentRoleInstance Method

Gets a RoleInstance object that represents the role instance in which the code is currently running.

Syntax

public:
RoleInstance& GetCurrentRoleInstance()  

Return value

Type: RoleInstance 

A RoleInstance object that represents the role instance in which the code is currently running.

Requirements

Header: Declared in RoleEnvironment.h.

Library: Use GSDK110.lib (VS 2012) or GSDK100.lib (VS 2010).

See also

Reference

RoleEnvironment

RoleEnvironment Members