共用方式為


IAmbientProvider.GetAllAmbientValues 方法

定義

針對要求的範圍,傳回環境型別或屬性資訊項目的可列舉集。

多載

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[]

要從中擷取環境型別資訊的型別集。

傳回

IEnumerable<Object>

物件的可列舉集,表示所要求 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[]

指定一個或多個屬性識別項物件,這些物件識別要視為環境屬性的屬性。

傳回

IEnumerable<AmbientPropertyValue>

所要求屬性集之環境屬性資訊項目的可列舉集。 每個傳回之 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[]

指定一個或多個屬性識別項物件,這些物件識別要視為環境屬性的屬性。

傳回

IEnumerable<AmbientPropertyValue>

要求的型別和屬性集之環境屬性資訊項目的可列舉集。 每個傳回之 AmbientPropertyValue 的屬性資訊都會符合其中一個輸入 typesproperties

備註

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

這個特定 GetAllAmbientValues 多載可以在相同傳遞樹狀結構中搜尋環境類型和環境屬性。 使用此多載會導致傳回值與 或 GetAllAmbientValues(XamlType[]) 不同的 GetAllAmbientValues(IEnumerable<XamlType>, XamlMember[]) 專案順序。

此多載也允許搜尋不使用任何已儲存的內容。 GetAllAmbientValues(IEnumerable<XamlType>, XamlMember[])如果已儲存的內容可用,則 或 GetAllAmbientValues(XamlType[]) 多載會隱含地使用, (它們一律會如同隱含 searchLiveStackOnly 參數 false) 一樣。 儲存內容的概念可能會由特定 XAML 架構內容或包含 XAML 的架構,以不同的方式處理。 在 WPF XAML 實作中,儲存的內容用於範本擴充,以及其他功能區域。

適用於