語言

JsonObject.IndexOf(String) 方法

定義

決定物件中特定屬性名稱的索引。

public:
 int IndexOf(System::String ^ propertyName);
public int IndexOf(string propertyName);
member this.IndexOf : string -> int
Public Function IndexOf (propertyName As String) As Integer

參數

propertyName
String

要找到房產名稱。

傳回

若找到,則為 的 propertyName 索引;否則為 -1。

例外狀況

propertyName 是 null。

適用於