ResourceDictionaryDiagnostics.GetResourceDictionariesForSource(Uri) 方法

定義

尋找從指定來源 URI 建立的資源字典。Finds the resource dictionaries created from a given source URI.

public:
 static System::Collections::Generic::IEnumerable<System::Windows::ResourceDictionary ^> ^ GetResourceDictionariesForSource(Uri ^ uri);
public static System.Collections.Generic.IEnumerable<System.Windows.ResourceDictionary> GetResourceDictionariesForSource (Uri uri);
static member GetResourceDictionariesForSource : Uri -> seq<System.Windows.ResourceDictionary>
Public Shared Function GetResourceDictionariesForSource (uri As Uri) As IEnumerable(Of ResourceDictionary)

參數

uri
Uri

來源 URI。The source URI.

傳回

IEnumerable<ResourceDictionary>

uri 建立的資源字典。The resource dictionaries created from uri. 如果未啟用視覺化診斷、未設定 ENABLE_XAML_DIAGNOSTICS_SOURCE_INFO 環境變數,或將該變數設為 false,或未從 uri 建立任何資源字典,方法傳回 nullThe method returns null if Visual Diagnostics is not enabled, the ENABLE_XAML_DIAGNOSTICS_SOURCE_INFO environment variable is not set or is set to false, or no resource dictionaries were created from uri.

適用於