4 using System.Runtime.InteropServices;
5 using System.Diagnostics;
7 public class MethodReturn : Message
9 private MethodReturn() : base(MessageType.MethodReturn)
13 internal MethodReturn(IntPtr rawMessage, Service service) : base(rawMessage, service)
17 public MethodReturn(MethodCall methodCall)
19 this.service = methodCall.Service;
21 RawMessage = dbus_message_new_method_return(methodCall.RawMessage);
23 if (RawMessage == IntPtr.Zero) {
24 throw new OutOfMemoryException();
27 dbus_message_unref(RawMessage);
30 public new string PathName
38 public new string InterfaceName
42 return base.InterfaceName;
46 public new string Name
55 private extern static IntPtr dbus_message_new_method_return(IntPtr rawMessage);