ContextUtil.IsCallerInRole(String) Método

Definição

Determina se o chamador está na função especificada.Determines whether the caller is in the specified role.

public:
 static bool IsCallerInRole(System::String ^ role);
public static bool IsCallerInRole (string role);
static member IsCallerInRole : string -> bool
Public Shared Function IsCallerInRole (role As String) As Boolean

Parâmetros

role
String

O nome da função a ser verificada.The name of the role to check.

Retornos

Boolean

true se o chamador estiver na função indicada; caso contrário, false.true if the caller is in the specified role; otherwise, false.

Exceções

Não há contextos de COM+ disponíveis.There is no COM+ context available.

Aplica-se a