Localizable.GetValue 方法

定义

检索属性的值。

重载

GetValue()

检索具有默认属性值的属性的值。

GetValue(Type)

获取具有指定类型的类型。

GetValue<T>()

检索与属性关联的值。

GetValue()

检索具有默认属性值的属性的值。

public:
 System::Object ^ GetValue();
public object GetValue ();
member this.GetValue : unit -> obj
Public Function GetValue () As Object

返回

该属性的值。

适用于

GetValue(Type)

获取具有指定类型的类型。

public:
 System::Object ^ GetValue(Type ^ targetType);
public object GetValue (Type targetType);
member this.GetValue : Type -> obj
Public Function GetValue (targetType As Type) As Object

参数

targetType
Type

此样式所针对的类型。

返回

具有指定值的类型。

适用于

GetValue<T>()

检索与属性关联的值。

public:
generic <typename T>
 T GetValue();
public T GetValue<T> ();
member this.GetValue : unit -> 'T
Public Function GetValue(Of T) () As T

类型参数

T

泛型对象值。

返回

T

与属性关联的值。

适用于