ObjectPath.GetPathValue 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetPathValue<T>(Object, String) |
取得相對於 對象的路徑值。 |
| GetPathValue<T>(Object, String, T) |
取得相對於 對象的路徑值。 |
GetPathValue<T>(Object, String)
GetPathValue<T>(Object, String, T)
取得相對於 對象的路徑值。
public static T GetPathValue<T>(object obj, string path, T defaultValue);
static member GetPathValue : obj * string * 'T -> 'T
Public Shared Function GetPathValue(Of T) (obj As Object, path As String, defaultValue As T) As T
類型參數
- T
輸入回傳。
參數
- obj
- Object
首先是物件。
- path
- String
要評估的路徑。
- defaultValue
- T
如果遺漏路徑的任何部分,則為要使用的預設值。
傳回
T
value 或 default(T)。