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.3.623.2
public static Object TryGetPropertyValueFromComObj(
	Object comObj,
	string propertyName


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

Return Value

Type: Object
Value found in the property.
See Also