Udostępnij za pośrednictwem


DataServiceContext.GetMetadataUri Method

Gets a URI of the location of .edmx metadata.

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

Syntax

'Declaration
Public Function GetMetadataUri As Uri
'Usage
Dim instance As DataServiceContext 
Dim returnValue As Uri 

returnValue = instance.GetMetadataUri()
public Uri GetMetadataUri()
public:
Uri^ GetMetadataUri()
member GetMetadataUri : unit -> Uri
public function GetMetadataUri() : Uri

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.

See Also

Reference

DataServiceContext Class

System.Data.Services.Client Namespace