Click or drag to resize

MFUtilsTryGetPropertyValueFromComObj Method

Attempts to resolve the value from the properties a COM object using the property name. This prevents errors in some com objects that may not have a value set for the property. - These properties will throw an "Unspecified error. (0x80004005)" when attempting to - access the value if no value is present.

Namespace:  MFiles.VAF.Common
Assembly:  MFiles.VAF (in MFiles.VAF.dll) Version: 2.2.0.9
Syntax
C#
public static Object TryGetPropertyValueFromComObj(
	Object comObj,
	string propertyName
)

Parameters

comObj
Type: SystemObject
The com object instance.
propertyName
Type: SystemString
Property name to resolve from.

Return Value

Type: Object
Value found in the property.
See Also