你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CrossDomainController.Bridge(String) 方法

定义

托管在 中的 iframe页面将接受来自已批准来源的 postMessage 消息,并将其作为同域 ajax 请求转发到运行时。 这是 IE8-9 中传输MobileServices.Web.js所必需的IframeBridge

[System.Web.Http.AllowAnonymous]
[System.Web.Http.HttpGet]
public System.Web.Http.IHttpActionResult Bridge (string origin);
[<System.Web.Http.AllowAnonymous>]
[<System.Web.Http.HttpGet>]
member this.Bridge : string -> System.Web.Http.IHttpActionResult
Public Function Bridge (origin As String) As IHttpActionResult

参数

origin
String

要验证的源

返回

System.Web.Http.IHttpActionResult

一个表示结果的 System.Web.Http.IHttpActionResult

属性
System.Web.Http.AllowAnonymousAttribute System.Web.Http.HttpGetAttribute

适用于