据我所知,不,QuickLaunchUrl不起作用。改用OnQuickLaunch。
使用
documentation
internal SPList EnsureListExists(SPWeb web)
{
SPList list = null;
try
{
list = web.Lists[this.Title];
}
catch (ArgumentException)
{
Guid guid;
int num;
string str;
string documentTemplate;
SPListTemplate.QuickLaunchOptions off = SPListTemplate.QuickLaunchOptions.Off;
if (!string.IsNullOrEmpty(this.TemplateType))
{
num = int.Parse(this.TemplateType, NumberFormatInfo.InvariantInfo);
str = base.FeatureDefinition.Id.ToString();
documentTemplate = null;
if (!string.IsNullOrEmpty(this.FeatureId))
{
str = this.FeatureId;
}
if (!string.IsNullOrEmpty(this.DocumentTemplate))
{
documentTemplate = this.DocumentTemplate;
}
if (SPUtility.StsCompareStrings(this.OnQuickLaunch, "TRUE") || !string.IsNullOrEmpty(this.QuickLaunchUrl))
{
off = SPListTemplate.QuickLaunchOptions.On;
}
guid = web.Lists.Add(this.Title, this.Description, this.Url, str, num, documentTemplate, off);
if (!(guid != Guid.Empty))
{
return null;
}
return web.Lists[guid];
}
return null;
}
return list;
}
因此,将任何值放入QuickLaunchUrl与在OnQuickLaunch中输入TRUE具有相同的效果。但我找不到任何使用或应用QuickLaunchUrl实际值的地方。