XamlSchemaContext.GetXamlDirective(String, String) 方法

定義

傳回 XamlDirective 值,這個值表示用於 XAML 語言或特定實作的指示詞。

public:
 virtual System::Xaml::XamlDirective ^ GetXamlDirective(System::String ^ xamlNamespace, System::String ^ name);
public virtual System.Xaml.XamlDirective GetXamlDirective (string xamlNamespace, string name);
abstract member GetXamlDirective : string * string -> System.Xaml.XamlDirective
override this.GetXamlDirective : string * string -> System.Xaml.XamlDirective
Public Overridable Function GetXamlDirective (xamlNamespace As String, name As String) As XamlDirective

參數

xamlNamespace
String

包含具名指示詞的 XAML 命名空間。

name
String

要取得之指示詞的名稱。

傳回

XamlDirective

XamlDirective 物件,表示所要求的指示詞。

例外狀況

xamlNamespacenamenull

備註

如果您從 建立衍生類別 XamlDirective 做為 XAML 類型系統擴充案例的一部分,請覆寫這個方法。

適用於