語言

IAmbientProvider.GetAllAmbientValues 方法

定義

回傳一組可枚舉的環境類型或屬性資訊項目,適用於所請求範圍。

多載

名稱 Description
GetAllAmbientValues(XamlType[])

回傳一組可枚舉的物件實例,涵蓋所請求類型的可能環境型態。

GetAllAmbientValues(IEnumerable<XamlType>, XamlMember[])

回傳一組可枚舉的環境屬性資訊項目,針對所請求的屬性集合。

GetAllAmbientValues(IEnumerable<XamlType>, Boolean, IEnumerable<XamlType>, XamlMember[])

回傳一組可枚舉的環境屬性資訊項目,涵蓋所請求的類型與屬性集合。

GetAllAmbientValues(XamlType[])

回傳一組可枚舉的物件實例,涵蓋所請求類型的可能環境型態。

public:
 System::Collections::Generic::IEnumerable<System::Object ^> ^ GetAllAmbientValues(... cli::array <System::Xaml::XamlType ^> ^ types);
public System.Collections.Generic.IEnumerable<object> GetAllAmbientValues(params System.Xaml.XamlType[] types);
abstract member GetAllAmbientValues : System.Xaml.XamlType[] -> seq<obj>
Public Function GetAllAmbientValues (ParamArray types As XamlType()) As IEnumerable(Of Object)

參數

types
XamlType[]

用來取得環境型態資訊的類型集合。

傳回

一組可枚舉的物件,代表所請求識別碼集合 XamlType 的值。

適用於

GetAllAmbientValues(IEnumerable<XamlType>, XamlMember[])

回傳一組可枚舉的環境屬性資訊項目,針對所請求的屬性集合。

public:
 System::Collections::Generic::IEnumerable<System::Xaml::AmbientPropertyValue ^> ^ GetAllAmbientValues(System::Collections::Generic::IEnumerable<System::Xaml::XamlType ^> ^ ceilingTypes, ... cli::array <System::Xaml::XamlMember ^> ^ properties);
public System.Collections.Generic.IEnumerable<System.Xaml.AmbientPropertyValue> GetAllAmbientValues(System.Collections.Generic.IEnumerable<System.Xaml.XamlType> ceilingTypes, params System.Xaml.XamlMember[] properties);
abstract member GetAllAmbientValues : seq<System.Xaml.XamlType> * System.Xaml.XamlMember[] -> seq<System.Xaml.AmbientPropertyValue>
Public Function GetAllAmbientValues (ceilingTypes As IEnumerable(Of XamlType), ParamArray properties As XamlMember()) As IEnumerable(Of AmbientPropertyValue)

參數

ceilingTypes
IEnumerable<XamlType>

指定一種或多種類型,當在物件圖向上遍歷時,應停止評估。 此類型具備所需的環境特性。 可以是 null。

properties
XamlMember[]

指定一個或多個屬性識別物件,用以識別將被視為環境性質的屬性。

傳回

一組可枚舉的環境屬性資訊項目,用於所請求的屬性集合。 每個 AmbientPropertyValue 回傳的屬性資訊都會與其中一個輸入 properties相匹配。

備註

每個 AmbientPropertyValue 回傳的都包含識別 XamlMember 碼和屬性值。

適用於

GetAllAmbientValues(IEnumerable<XamlType>, Boolean, IEnumerable<XamlType>, XamlMember[])

回傳一組可枚舉的環境屬性資訊項目,涵蓋所請求的類型與屬性集合。

public:
 System::Collections::Generic::IEnumerable<System::Xaml::AmbientPropertyValue ^> ^ GetAllAmbientValues(System::Collections::Generic::IEnumerable<System::Xaml::XamlType ^> ^ ceilingTypes, bool searchLiveStackOnly, System::Collections::Generic::IEnumerable<System::Xaml::XamlType ^> ^ types, ... cli::array <System::Xaml::XamlMember ^> ^ properties);
public System.Collections.Generic.IEnumerable<System.Xaml.AmbientPropertyValue> GetAllAmbientValues(System.Collections.Generic.IEnumerable<System.Xaml.XamlType> ceilingTypes, bool searchLiveStackOnly, System.Collections.Generic.IEnumerable<System.Xaml.XamlType> types, params System.Xaml.XamlMember[] properties);
abstract member GetAllAmbientValues : seq<System.Xaml.XamlType> * bool * seq<System.Xaml.XamlType> * System.Xaml.XamlMember[] -> seq<System.Xaml.AmbientPropertyValue>
Public Function GetAllAmbientValues (ceilingTypes As IEnumerable(Of XamlType), searchLiveStackOnly As Boolean, types As IEnumerable(Of XamlType), ParamArray properties As XamlMember()) As IEnumerable(Of AmbientPropertyValue)

參數

ceilingTypes
IEnumerable<XamlType>

指定一種或多種類型,當在物件圖向上遍歷時,應停止評估。 此類型具備所需的環境特性。 可以是 null。

searchLiveStackOnly
Boolean

true 不使用儲存的上下文; false 用的是儲存的上下文。 預設值為 false。

types
IEnumerable<XamlType>

指定一個或多個類型識別物件,用以識別應視為環境型別的類型。

properties
XamlMember[]

指定一個或多個屬性識別物件,用以識別將被視為環境性質的屬性。

傳回

一組可枚舉的環境屬性資訊項目,用於所請求的類型與屬性集合。 每個AmbientPropertyValue回傳的屬性資訊都會與其中一個輸入typesproperties或 。

備註

每個 AmbientPropertyValue 回傳的都包含識別 XamlMember 碼和屬性值。

這種特定的 GetAllAmbientValues 過載可以在同一棵樹中搜尋環境類型和環境屬性。 利用此過載會導致返回值中項目的排序與 或 不同GetAllAmbientValues(IEnumerable<XamlType>, XamlMember[])GetAllAmbientValues(XamlType[])。

這種過載也允許搜尋不使用任何儲存的上下文。 如果有儲存的上下文可用,或GetAllAmbientValues(IEnumerable<XamlType>, XamlMember[])GetAllAmbientValues(XamlType[])重載會隱含使用(它們總是視為隱含searchLiveStackOnly參數)。false 儲存上下文的概念可能會因特定的 XAML 架構上下文或整合 XAML 的框架而有所不同。 在 WPF XAML 實作中,儲存的上下文用於範本擴充及其他功能領域。

適用於