DataServiceContext.GetMetadataUri Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets a URI of the location of .edmx metadata.

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

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.

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.

.NET Framework
Available since 3.5
Silverlight
Available since 2.0
Return to top
Show: