コード例 #1
0
 /// <summary>
 /// Create a new Attachment object.
 /// </summary>
 /// <param name="attachmentID">Initial value of the AttachmentID property.</param>
 /// <param name="fileID">Initial value of the FileID property.</param>
 /// <param name="fileContents">Initial value of the FileContents property.</param>
 /// <param name="originalFileName">Initial value of the OriginalFileName property.</param>
 /// <param name="originalFileExtension">Initial value of the OriginalFileExtension property.</param>
 /// <param name="mimeType">Initial value of the MimeType property.</param>
 /// <param name="isCurrent">Initial value of the IsCurrent property.</param>
 /// <param name="changeLogIDCreated">Initial value of the ChangeLogIDCreated property.</param>
 public static Attachment CreateAttachment(global::System.Int32 attachmentID, global::System.Guid fileID, global::System.Byte[] fileContents, global::System.String originalFileName, global::System.String originalFileExtension, global::System.String mimeType, global::System.Boolean isCurrent, global::System.Int32 changeLogIDCreated)
 {
     Attachment attachment = new Attachment();
     attachment.AttachmentID = attachmentID;
     attachment.FileID = fileID;
     attachment.FileContents = fileContents;
     attachment.OriginalFileName = originalFileName;
     attachment.OriginalFileExtension = originalFileExtension;
     attachment.MimeType = mimeType;
     attachment.IsCurrent = isCurrent;
     attachment.ChangeLogIDCreated = changeLogIDCreated;
     return attachment;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Attachments EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAttachments(Attachment attachment)
 {
     base.AddObject("Attachments", attachment);
 }