Share via


JsonPropertyNameAttribute(String) 建構函式

定義

使用指定的屬性名稱,初始化 JsonPropertyNameAttribute 的新執行個體。

public:
 JsonPropertyNameAttribute(System::String ^ name);
public JsonPropertyNameAttribute (string name);
new System.Text.Json.Serialization.JsonPropertyNameAttribute : string -> System.Text.Json.Serialization.JsonPropertyNameAttribute
Public Sub New (name As String)

參數

name
String

屬性的名稱。

適用於