JsonPolymorphicAttribute.TypeDiscriminatorPropertyName 屬性

定義

取得或設定 polymorhic 類型的自訂類型鑒別子屬性名稱。 如果保留 unset,則會使用預設的 '$type' 屬性名稱。

public:
 property System::String ^ TypeDiscriminatorPropertyName { System::String ^ get(); void set(System::String ^ value); };
public string? TypeDiscriminatorPropertyName { get; set; }
member this.TypeDiscriminatorPropertyName : string with get, set
Public Property TypeDiscriminatorPropertyName As String

屬性值

適用於