Version

GetCachedRoleHelper(UIRole,ComponentRole,String,ResolutionOrderInfo) Method

Verifies that the specified cached role is still valid. If not it regets it and assigns it to the role which is passed by ref. Also for convenience it returns the same role.
Syntax
'Declaration
 
Public Overloads Shared Function GetCachedRoleHelper( _
   ByRef role As UIRole, _
   ByVal componentRole As ComponentRole, _
   ByVal roleName As String, _
   ByRef order As ResolutionOrderInfo _
) As UIRole
public static UIRole GetCachedRoleHelper( 
   ref UIRole role,
   ComponentRole componentRole,
   string roleName,
   out ResolutionOrderInfo order
)

Parameters

role
By reference role that should be verified to be up to date and if not, updated with the current role
componentRole
The component role used to obtain the role and resolution order
roleName
Name of the role to obtain
order
An out parameter ResolutionOrder that is set to the current resolution order of the component role

Return Value

The current uirole or null if one could not be obtained.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also