public static void SetValueAsString <TEnum>(this IAIMPPropertyList propertyList, TEnum propId, string value) where TEnum : Enum { var str = Plugin.Core.CreateString(value); propertyList.SetValueAsObject(propId, str); Marshal.FinalReleaseComObject(str); }
public static void SetValueAsObject <TEnum>(this IAIMPPropertyList propertyList, TEnum propId, object value) where TEnum : Enum { propertyList.SetValueAsObject(Convert.ToInt32(propId), value).EnsureSuccess(); }