Επεξεργασία

Κοινή χρήση μέσω


IComNativeDescriptorHandler.GetPropertyValue Method

Definition

Gets the value of the specified property.

Overloads

GetPropertyValue(Object, Int32, Boolean)

Gets the value of the property that has the specified dispatch identifier.

GetPropertyValue(Object, String, Boolean)

Gets the value of the property that has the specified name.

GetPropertyValue(Object, Int32, Boolean)

Gets the value of the property that has the specified dispatch identifier.

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

Parameters

component
Object

The object to which the property belongs.

dispid
Int32

The dispatch identifier.

success
Boolean

A Boolean, passed by reference, that represents whether the property was retrieved.

Returns

The value of the property that has the specified dispatch identifier.

Remarks

Note

This API is now obsolete. The non-obsolete alternative is ComObjectType.

Applies to

GetPropertyValue(Object, String, Boolean)

Gets the value of the property that has the specified name.

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

Parameters

component
Object

The object to which the property belongs.

propertyName
String

The name of the property.

success
Boolean

A Boolean, passed by reference, that represents whether the property was retrieved.

Returns

The value of the property that has the specified name.

Remarks

Note

This API is now obsolete. The non-obsolete alternative is ComObjectType.

Applies to