logo
logo

Importing packages

Users can import internal packages (Stylelabs.M.SDK) or external packages (System)) inside scripts.

Important
  • All scripts in Sitecore Content HubTM are restricted. Unrestricted scripts are obsolete.
  • You can import only permitted packages to restricted scripts.

SDK packages

Import SDK packages as follows:

using {package_name};
  • Example:
using Stylelabs.M.Sdk.Clients.IEntitiesClient;
Note

For more information about SDK packages, please refer to the API reference notes.

System packages

Import system packages as follows:

using {package_name};
  • Example:
using System.Math;

Can we improve this article ? Provide feedback