コード例 #1
0
    /// <summary>
    /// Returns true if any of the types is included in the package.
    /// </summary>
    public bool IsAnyIncluded(string objectTypes, bool siteObjects)
    {
        var types = CMSObjectHelper.GetTypes(objectTypes);

        foreach (string type in types)
        {
            if (Settings.IsIncluded(type, siteObjects))
            {
                return(true);
            }
        }

        return(false);
    }