예제 #1
0
        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);
        }
예제 #2
0
 public static void SetValueAsObject <TEnum>(this IAIMPPropertyList propertyList, TEnum propId, object value) where TEnum : Enum
 {
     propertyList.SetValueAsObject(Convert.ToInt32(propId), value).EnsureSuccess();
 }