Прочетете на английски Редактиране

Споделяне чрез


EntityPropertyMappingAttribute.SourcePath Property

Definition

Gets the name of the property of the syndication item that will be mapped to the specified element of the feed.

C#
public string SourcePath { get; }

Property Value

String value that contains property name.

Remarks

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.

Applies to

Продукт Версии
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1