Swift SDK Version

GraphRequestDataAttachment

publicclassGraphRequestDataAttachment
A container for data attachments so that additional metadata can be provided about the attachment (like content type or filename).
  • The attachment data.

    Declaration

    Swift
    publicletdata:Data
  • The file name of the attachment.

    Declaration

    Swift
    publicletfilename:String?
  • The content type of the attachment.

    Declaration

    Swift
    publicletcontentType:String?
  • Initializes a data attachment

    Declaration

    Swift
    publicinit(data:Data,filename:String?=nil,contentType:String?=nil)

    Parameters

    data
    The attachment data (retained, not copied).
    filename
    Optional filename for the attachment. Default: nil.
    contentType
    Optional content type for the attachment. Default: nil.