Click or drag to resize
ResourceInfoProviderIsResourceAvailable Method
Returns a value indicating whether the specified resource (module) is available.

Namespace: CMS.Modules
Assembly: CMS.Modules (in CMS.Modules.dll) Version: 13.0.131
Syntax
C#
public static bool IsResourceAvailable(
	int resourceId
)

Parameters

resourceId
Type: SystemInt32
A resource (module) identifier.

Return Value

Type: Boolean
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