Click or drag to resize
ResourceSiteInfoProviderAddResourceToSite Method

Note: This API is now obsolete.

Adds specified resource to the site.

Namespace: CMS.Modules
Assembly: CMS.Modules (in CMS.Modules.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use IResourceSiteInfoProvider.Add(int, int) instead. To get an instance of the interface's implementation, use dependency injection or access the instance directly - ResourceSiteInfo.Provider.")]
public static void AddResourceToSite(
	int resourceId,
	int siteId
)

Parameters

resourceId
Type: SystemInt32
ResourceID
siteId
Type: SystemInt32
SiteID
See Also