GenerateScriptTypeAttribute.ScriptTypeId 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定型別元資料標記的型別識別碼。
public:
property System::String ^ ScriptTypeId { System::String ^ get(); void set(System::String ^ value); };
public string ScriptTypeId { get; set; }
member this.ScriptTypeId : string with get, set
Public Property ScriptTypeId As String
屬性值
序列化 JavaScript 物件符號(JSON)字串中型別元資料標記的型別識別碼。 預設值為該類型的組裝限定名稱。
備註
這是選擇性屬性。 若指定,則 的 ScriptTypeId 值用於序列化 JSON 字串上的類型元資料標記(「__type」),而非組合語言限定的類型名稱。 在反序列化過程中,與 JavaScriptSerializer 物件相關的型別解析器會使用型別元資料標記值來映射回適當的受管理型別。