從指定之物件的指定之屬性取得值。
命名空間: 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)。