如何为 clipboard.setText 的 html 代码添加前缀



好吧,在下面的代码中不允许尝试包含在剪贴板中

if (o["status"].ToString() == "200")
{
TaskbarIcon tb = (TaskbarIcon)FindResource("notifyIcon");
tb.ShowBalloonTip("Upload Successful!", Screenshot.Properties.Resources.IMGURL + o["filename"].ToString(), BalloonIcon.Info);
Clipboard.SetText(Screenshot.Properties.Resources.IMGURL + o["filename"].ToString());
}

以下代码需要传递

Clipboard.SetText("<img src="Screenshot.Properties.Resources.IMGURL + o["filename"].ToString()">"); 
Clipboard.SetText("<img src=""+Screenshot.Properties.Resources.IMGURL + o["filename"].ToString()+"">"); 

最新更新