你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
CrossDomainController.Bridge(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
托管在 中的 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