EntityPropertyMappingAttribute.SourcePath Property

 
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 the name of the property of the syndication item that will be mapped to the specified element of the feed.

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

public string SourcePath { get; }

Property Value

Type: System.String

String value that contains property name.

The SourcePath property cannot directly reference a complex type. For complex types, you must use a path expression where property names are separated by a backslash (/) character. For example, the following values are permitted for an entity type Person with an integer property Age and a complex property Address:

  • Age

  • Address/Street

The SourcePath property cannot be set to a value that contains a space or any other character that is not valid in a property name.

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