ResourceInfoProvider IsResourceAvailable Method Kentico 8.1 API Reference
Returns a value indicating whether the specified resource (module) is available.

Namespace: CMS.Modules
Assembly: CMS.Modules (in CMS.Modules.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

resourceId
Type: OnlineSystem Int32
A resource (module) identifier.

Return Value

Type: OnlineBoolean
True, 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