語言

XamlDirective.AllowedLocation 屬性

定義

取得值,指定可指定 指示詞的 XAML 節點類型。

public:
 property System::Xaml::Schema::AllowedMemberLocations AllowedLocation { System::Xaml::Schema::AllowedMemberLocations get(); };
public System.Xaml.Schema.AllowedMemberLocations AllowedLocation { get; }
member this.AllowedLocation : System.Xaml.Schema.AllowedMemberLocations
Public ReadOnly Property AllowedLocation As AllowedMemberLocations

屬性值

列舉的一個數值。 預設為列舉預設值,也就是 None。

備註

你可以在建構子簽章中 XamlDirective(IEnumerable<String>, String, XamlType, XamlValueConverter<TypeConverter>, AllowedMemberLocations) 設定這個值。 如果你用 XamlDirective(String, String) 建構子簽名來構造,該實例的 AllowedLocation 值為 Any。 然而,該實例總是報告 IsUnknown 為 true。 此行為通常影響嘗試撰寫物件圖,也影響值的其他 XamlMember 實際用途。

通常你不會構造一個 XAML 指令,其中 AllowedLocation 是 AllowedMemberLocations.None。

適用於