ResourceInfoProviderIsResourceAvailable Method |
Returns a value indicating whether the specified resource (module) is available.
Namespace: CMS.ModulesAssembly: CMS.Modules (in CMS.Modules.dll) Version: 8.2.23
Syntax public static bool IsResourceAvailable(
int resourceId
)
Parameters
- resourceId
- Type: SystemInt32
A resource (module) identifier.
Return Value
Type:
BooleanTrue, if the specified resource exists; otherwise, false.
Remarks
A resource is available only if a database record exists and a module with the same is installed.
A resource is also available if a negative identifier value is specified.
See Also