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 。 不過,實例一律會報告 IsUnknowntrue 。 此行為通常會影響寫入物件圖形的嘗試,也會影響其他實際使用 XamlMember 值。

您通常不會建構 XAML 指示詞案例,其中 AllowedLocationAllowedMemberLocations.None

適用於