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.CommonAssembly: MFiles.VAF (in MFiles.VAF.dll) Version: 24.1.706.1
public static Object TryGetPropertyValueFromComObj(
Object comObj,
string propertyName
)
- comObj Object
- The com object instance.
- propertyName String
- Property name to resolve from.
ObjectValue found in the property.