Share via


DataServiceContext.TypeScheme Property

Note: This API is now obsolete.

Gets or sets the URI used to indicate what type scheme is used by the service.

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

Syntax

'Declaration
<ObsoleteAttribute("You cannot change the default type scheme for an OData service that supports version 3 of the OData protocol, or a later version.",  _
    False)> _
Public Property TypeScheme As Uri 
    Get 
    Set
'Usage
Dim instance As DataServiceContext 
Dim value As Uri 

value = instance.TypeScheme

instance.TypeScheme = value
[ObsoleteAttribute("You cannot change the default type scheme for an OData service that supports version 3 of the OData protocol, or a later version.", 
    false)]
public Uri TypeScheme { get; set; }
[ObsoleteAttribute(L"You cannot change the default type scheme for an OData service that supports version 3 of the OData protocol, or a later version.", 
    false)]
public:
property Uri^ TypeScheme {
    Uri^ get ();
    void set (Uri^ value);
}
[<ObsoleteAttribute("You cannot change the default type scheme for an OData service that supports version 3 of the OData protocol, or a later version.", 
    false)>]
member TypeScheme : Uri with get, set
function get TypeScheme () : Uri 
function set TypeScheme (value : Uri)

Property Value

Type: System.Uri
A Uri object that contains the type scheme.

Remarks

In an ATOM payload, the return value will be the scheme attribute of a category element used to identify the type of an entity. The default value is https://schemas.microsoft.com/ado/2007/08/dataservices/scheme.

See Also

Reference

DataServiceContext Class

System.Data.Services.Client Namespace