This documentation is archived and is not being maintained.

EntityPropertyMappingAttribute Constructor (String, String, String, String, Boolean)

Creates an instance of the EntityPropertyMappingAttribute to map a property to a custom feed element.

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

public EntityPropertyMappingAttribute(
	string sourcePath,
	string targetPath,
	string targetNamespacePrefix,
	string targetNamespaceUri,
	bool keepInContent
)

Parameters

sourcePath
Type: System.String
The name of the property of the entity type, as string, that is mapped to the specified property in the feed.
targetPath
Type: System.String
The name of the target, as string, in the resulting feed to which the property is mapped.
targetNamespacePrefix
Type: System.String
This parameter, together with targetNamespaceUri, specifies the namespace in which the targetPath element exists.
targetNamespaceUri
Type: System.String
Specifies the namespace URI of the element, as string, specified by the targetName property.
keepInContent
Type: System.Boolean
Boolean value that is true when the property being mapped should appear both in its mapped-to location and in the content section of the feed.

If neither targetNamespacePrefix nor targetNamespaceUri are specified, the targetName will be put in the default namespace. If targetNamespacePrefix is not specified, a prefix is autogenerated. If targetNamespacePrefix is specified, but targetNamespaceUri is not specified, an exception is thrown at construction time.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: