ContentDisposition
aを に設定する方法はありLinkedResource
ますinline
か、つまり画像の場合ですか?
これが私がLinkedResource
今自分を構築している方法です:
Dim img As LinkedResource = New LinkedResource(filePath)
Dim fileType As String = ""
Dim attName As String = "image" + fileName + "." + fileExt
If (fileExt = "jpg" Or fileExt = "jpeg") Then
img.ContentType.MediaType = System.Net.Mime.MediaTypeNames.Image.Jpeg
ElseIf (fileExt = "gif") Then
img.ContentType.MediaType = System.Net.Mime.MediaTypeNames.Image.Gif
ElseIf (fileExt = "png") Then
img.ContentType.MediaType = "image/png"
End If
img.ContentId = attName
img.ContentType.Name = attName
linkedResources.Add(img)