public void addAttachment(long pageId, string mime, string comment, string filename, IBinaryContainer image) { checkCredentials(); RemoteAttachment attachment = new RemoteAttachment(); // Comment is ignored, see: http://jira.atlassian.com/browse/CONF-9395 attachment.comment = comment; attachment.fileName = filename; attachment.contentType = mime; confluence.addAttachment(credentials, pageId, attachment, image.ToByteArray()); }
/// <remarks/> public void addAttachment1Async(string in0, RemoteAttachment in1, byte[] in2, object userState) { if ((this.addAttachment1OperationCompleted == null)) { this.addAttachment1OperationCompleted = new System.Threading.SendOrPostCallback(this.OnaddAttachment1OperationCompleted); } this.InvokeAsync("addAttachment1", new object[] { in0, in1, in2}, this.addAttachment1OperationCompleted, userState); }
public RemoteAttachment addAttachment(string in0, RemoteAttachment in1, [System.Xml.Serialization.SoapElementAttribute(DataType="base64Binary")] byte[] in2) { object[] results = this.Invoke("addAttachment1", new object[] { in0, in1, in2}); return ((RemoteAttachment)(results[0])); }
/// <remarks/> public void addAttachment1Async(string in0, RemoteAttachment in1, byte[] in2) { this.addAttachment1Async(in0, in1, in2, null); }
/// <remarks/> public void addAttachmentAsync(string in0, long in1, RemoteAttachment in2, byte[] in3) { this.addAttachmentAsync(in0, in1, in2, in3, null); }