DataBus.TryGetPropertyValue 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
試圖取得房產價值。
多載
| 名稱 | Description |
|---|---|
| TryGetPropertyValue(String, Object) |
嘗試取得指定名稱和價值的房產價值。 |
| TryGetPropertyValue<T>(String, T) |
嘗試取得指定名稱和類型的屬性值。 |
TryGetPropertyValue(String, Object)
嘗試取得指定名稱和價值的房產價值。
public:
virtual bool TryGetPropertyValue(System::String ^ name, [Runtime::InteropServices::Out] System::Object ^ % value);
public bool TryGetPropertyValue(string name, out object value);
abstract member TryGetPropertyValue : string * obj -> bool
override this.TryGetPropertyValue : string * obj -> bool
Public Function TryGetPropertyValue (name As String, ByRef value As Object) As Boolean
參數
- name
- String
一個代表名字的字串。
- value
- Object
屬性值(可以為零)。
傳回
True若成功;否則,。 false
實作
適用於
TryGetPropertyValue<T>(String, T)
嘗試取得指定名稱和類型的屬性值。
public:
generic <typename T>
virtual bool TryGetPropertyValue(System::String ^ name, [Runtime::InteropServices::Out] T % value);
public bool TryGetPropertyValue<T>(string name, out T value);
abstract member TryGetPropertyValue : string * 'T -> bool
override this.TryGetPropertyValue : string * 'T -> bool
Public Function TryGetPropertyValue(Of T) (name As String, ByRef value As T) As Boolean
類型參數
- T
屬性值的型別。
參數
- name
- String
一個代表名字的字串。
- value
- T
屬性型別(可以是空屬性)。
傳回
true若成功;否則,。 false