語言

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

屬性的名稱。

適用於