public void SetPropValue(int propNum, IValue newVal)
        {
            var variant = new NativeApiVariant();

            variant.SetValue(newVal);
            NativeApiProxy.SetPropVal(_object, propNum, ref variant);
            variant.Clear();
        }
Beispiel #2
0
 public void SetPropValue(int propNum, IValue value)
 {
     using (var variant = new NativeApiVariant())
     {
         variant.Assign(value);
         NativeApiProxy.SetPropVal(_object, propNum, variant.Ptr);
     };
 }