簡體   English   中英

如何以編程方式獲取站點中所有Sitecore域的列表?

[英]How can I programmatically get a list of all of the Sitecore domains in a site?

在Sitecore 7.5中,我希望能夠以代碼形式獲取所有當前Sitecore域的列表。 我知道Sitecore安全性只是建立在ASP.NET Membership Provider之上的,但是我似乎找不到任何有關如何獲取代碼中所有域列表的文檔。

謝謝,科里

Sitecore.SecurityModel.DomainManager類中有一個GetDomains()方法:

/// <summary>
/// Gets all domains handled by the current provider.
/// </summary>
public static System.Collections.Generic.IEnumerable<Domain> GetDomains()

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM