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.

Definition

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

Parameters

comObj  Object
The com object instance.
propertyName  String
Property name to resolve from.

Return Value

Object
Value found in the property.

See Also