語言

JsonObject.Remove(String) 方法

定義

從 中移除具有指定屬性名稱的元素。JsonObject

public:
 virtual bool Remove(System::String ^ propertyName);
public bool Remove(string propertyName);
abstract member Remove : string -> bool
override this.Remove : string -> bool
Public Function Remove (propertyName As String) As Boolean

參數

propertyName
String

要移除元素的屬性名稱。

傳回

true如果元素被成功移除;否則,。 false

實作

例外狀況

propertyName 是 null。

適用於