Version

GetCachedRoleHelper(UIRole,EmbeddableEditorOwnerBase,Object,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 owner As EmbeddableEditorOwnerBase, _
   ByVal ownerContext As Object, _
   ByVal roleName As String, _
   ByRef order As ResolutionOrderInfo _
) As UIRole
public static UIRole GetCachedRoleHelper( 
   ref UIRole role,
   EmbeddableEditorOwnerBase owner,
   object ownerContext,
   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
owner
Owner whose component role should be used to access the role
ownerContext
Owner context used to obtain the component role
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