So i have a VB.net String here that looks as such below.
I have another string startId that i wish is substituted in the appropriate places.
So i wrote the following lines.
Dim jsonPayloadHeaderFormat As String = "Content-Type: application/json;charset=UTF-8" & "\r\n" & "Content-ID: {0}" & "\r\n" & "Content-Disposition: attachment; filename={0}" & "\r\n" & "{" & "\r\n"
String.Format(jsonPayloadHeaderFormat, startId)
But i get a input string not in correct format error.
I am new to vb.net and can't seem to get it.
Please advise.
startId{\r\nat the end.{indidcates that you want to begin a new element. Opening and closing braces are required.{character, it must be escaped, using{{