|
SecurityProviderUtilityIsResourceAccessible Method
|
Determines if the current user, as defined by the principal, has permission to access
the specified resource based on settings in the config file.
Namespace: GSF.SecurityAssembly: GSF.Security (in GSF.Security.dll) Version: 2.4.246-beta
Syntaxpublic static bool IsResourceAccessible(
string resource,
IPrincipal principal
)
Public Shared Function IsResourceAccessible (
resource As String,
principal As IPrincipal
) As Boolean
public:
static bool IsResourceAccessible(
String^ resource,
IPrincipal^ principal
)
static member IsResourceAccessible :
resource : string *
principal : IPrincipal -> bool
GSF.Security.SecurityProviderUtility.IsResourceAccessible = function(resource, principal);
View SourceParameters
- resource String
- Name of the resource to be checked.
- principal IPrincipal
- The principal providing the security context for the user.
Return Value
Booleantrue if the current user has permission to access the
resource; otherwise false.
See Also