DataServiceContext.GetMetadataUri Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets a URI of the data service metadata for the data service.

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

Syntax

'Declaration
Public Function GetMetadataUri As Uri
public Uri GetMetadataUri()

Return Value

Type: System.Uri
A URI that identifies the location of the metadata description, in .edmx format, for the data service identified by the base URI that is passed to the constructor.

Remarks

Returns the URI passed to the constructor with a single path segment (/$metadata) appended. Calling this method may generate a network operation to dynamically discover the metadata URI.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.