Share via


DataServiceContext.UsePostTunneling 属性

获取或设置一个布尔值,该值指示是否使用 POST 隧道。

命名空间:  System.Data.Services.Client
程序集:  Microsoft.Data.Services.Client(在 Microsoft.Data.Services.Client.dll 中)

语法

声明
Public Property UsePostTunneling As Boolean
    Get
    Set
用法
Dim instance As DataServiceContext
Dim value As Boolean

value = instance.UsePostTunneling

instance.UsePostTunneling = value
public bool UsePostTunneling { get; set; }
public:
property bool UsePostTunneling {
    bool get ();
    void set (bool value);
}
member UsePostTunneling : bool with get, set
function get UsePostTunneling () : boolean
function set UsePostTunneling (value : boolean)

属性值

类型:System.Boolean
指示是否使用 POST 隧道的布尔值。

注释

此属性控制是否允许发送到数据服务的创建、更新和删除请求使用协议的 POST 隧道功能。 如果设置为 true,则使用隧道功能。 如果设置为 false,则使用标准的 HTTP 方法。

此属性的默认值为 false。

请参阅

参考

DataServiceContext 类

System.Data.Services.Client 命名空间