AutomationProperties.GetCulture(DependencyObject) 方法

定義

取得所指定DependencyObject之 Culture XAML 附加屬性的值。

public:
 static int GetCulture(DependencyObject ^ element);
 static int GetCulture(DependencyObject const& element);
public static int GetCulture(DependencyObject element);
function getCulture(element)
Public Shared Function GetCulture (element As DependencyObject) As Integer

參數

element
DependencyObject

要檢查的 DependencyObject

傳回

Int32

int

指定 專案之文化特性屬性的值。

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

適用於