語言

JsonPolymorphicAttribute.TypeDiscriminatorPropertyName 屬性

定義

取得或設定多型型別的自訂型別判別子屬性名稱。 如果未設定,則使用預設的 '$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

屬性值

適用於