Creating the constants

The code snippets in this tutorial use a set of constants. To include them in your project perform the following:

  1. From the context menu of the ProductsModule, click Add » Class.
  2. Name the class file ProductsConstants.cs and click Add.
  3. Open the file ProductsConstants.cs.
  4. Modify the ProductsConstant class definition in the following way:

    public static class ProductsConstants
    {
        public static class Security
        {
            public const string PermissionSetName = "Products";
            public const string View = "ViewProducts";
            public const string Modify = "ModifyProducts";
            public const string Create = "CreateProducts";
            public const string Delete = "DeleteProducts";
            public const string ChangeOwner = "ChangeProductsOwner";
            public const string ChangePermissions = "ChangeProductsPermissions";
        }
    }

Next steps

+1-888-365-2779
sales@sitefinity.com

Related topics:

Feedback

How useful is this article?

Tell us more

Submit
Your message was successfully sent.

We appreciate your feedback.

Your message could not be sent.

OK