PropertyDictionary.TryGetPropertyValue 方法

定义

确定指示要获取的属性的值。

重载

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

实现

适用于