TryToGetReliableSetting() public static method

public static TryToGetReliableSetting ( DotNetNuke.Entities.Modules.ModuleInfo module, string settingName ) : string
module DotNetNuke.Entities.Modules.ModuleInfo
settingName string
return string
コード例 #1
0
ファイル: AppHelpers.cs プロジェクト: SpivEgin/2sxc
        //public class AppResponse
        //{
        //    public int AppId;
        //    public bool IsStored;
        //    public bool IsDefaultApp;
        //}

        public static int?GetAppIdFromModule(ModuleInfo module, int zoneId)
        {
            if (module.DesktopModule.ModuleName == "2sxc")
            {
                return(GetDefaultAppId(zoneId));// : new int?();
            }
            var appName = DnnStuffToRefactor.TryToGetReliableSetting(module, Settings.AppNameString);

            if (appName != null)
            {
                return(GetAppIdFromName(zoneId, appName));
            }

            return(null);
        }