Udostępnij za pośrednictwem


DataServiceContext.HttpStack Property

Gets a value that indicates the type of HTTP implementation to use when accessing the data service.

Supported only by the WCF Data Services 5.0 client for Silverlight.

Namespace:  System.Data.Services.Client
Assembly:  Microsoft.Data.Services.Client.SL (in Microsoft.Data.Services.Client.SL.dll)

Syntax

'Declaration
Public Property HttpStack As HttpStack 
    Get 
    Set
'Usage
Dim instance As DataServiceContext 
Dim value As HttpStack 

value = instance.HttpStack

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

Property Value

Type: System.Data.Services.Client.HttpStack
A HttpStack value that indicates the HTTP implementation to use when accessing the data service.

Remarks

The default value is Auto. When Auto is used, the client library automatically chooses the HTTP implementation that is used to access the data service. For example, when an XMLHTTP-based request cannot be used because of out-of-browser or cross-domain requirements, the Silverlight client HTTP implementation is used.

See Also

Reference

DataServiceContext Class

System.Data.Services.Client Namespace