IComNativeDescriptorHandler.GetPropertyValue 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得指定屬性的值。
多載
| 名稱 | 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
調度識別碼。
傳回
具有指定派遣識別碼的屬性值。
備註
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
屬性的名稱。
傳回
指的是擁有指定名稱的財產價值。
備註
Note
這個 API 現在已經過時了。 非過時的替代方法是 ComObjectType。