获取指定对象的指定属性的值。
命名空间: System.Data.Services.Providers
程序集: Microsoft.Data.Services(在 Microsoft.Data.Services.dll 中)
语法
声明
Public Shared Function GetValue ( _
value As Object, _
propertyName As String _
) As Object
用法
Dim value As Object
Dim propertyName As String
Dim returnValue As Object
returnValue = OpenTypeMethods.GetValue(value, _
propertyName)
public static Object GetValue(
Object value,
string propertyName
)
public:
static Object^ GetValue(
Object^ value,
String^ propertyName
)
static member GetValue :
value:Object *
propertyName:string -> Object
public static function GetValue(
value : Object,
propertyName : String
) : Object
参数
- value
类型:System.Object
要从中获取属性值的对象。
- propertyName
类型:System.String
要从中获取值的属性的名称。
返回值
类型:System.Object
请求的值;如果不能确定该值,则为 nullnull 引用(在 Visual Basic 中为 Nothing)。