IComNativeDescriptorHandler.GetPropertyValue 方法

定義

取得指定屬性的值。

多載

名稱 Description
GetPropertyValue(Object, Int32, Boolean)

取得具有指定派遣識別碼的屬性值。

GetPropertyValue(Object, String, Boolean)

取得該屬性名稱的價值。

GetPropertyValue(Object, Int32, Boolean)

取得具有指定派遣識別碼的屬性值。

public:
 System::Object ^ GetPropertyValue(System::Object ^ component, int dispid, bool % success);
public object GetPropertyValue(object component, int dispid, ref bool success);
abstract member GetPropertyValue : obj * int * bool -> obj
Public Function GetPropertyValue (component As Object, dispid As Integer, ByRef success As Boolean) As Object

參數

component
Object

該財產所屬的物件。

dispid
Int32

調度識別碼。

success
Boolean

一個 Boolean,透過參考傳遞,代表該屬性是否被檢索。

傳回

具有指定派遣識別碼的屬性值。

備註

Note

這個 API 現在已經過時了。 非過時的替代方法是 ComObjectType

適用於

GetPropertyValue(Object, String, Boolean)

取得該屬性名稱的價值。

public:
 System::Object ^ GetPropertyValue(System::Object ^ component, System::String ^ propertyName, bool % success);
public object GetPropertyValue(object component, string propertyName, ref bool success);
abstract member GetPropertyValue : obj * string * bool -> obj
Public Function GetPropertyValue (component As Object, propertyName As String, ByRef success As Boolean) As Object

參數

component
Object

該財產所屬的物件。

propertyName
String

屬性的名稱。

success
Boolean

一個 Boolean,透過參考傳遞,代表該屬性是否被檢索。

傳回

指的是擁有指定名稱的財產價值。

備註

Note

這個 API 現在已經過時了。 非過時的替代方法是 ComObjectType

適用於