Partager via


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

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public Sub New ( _
    sourcePath As String, _
    targetPath As String, _
    targetNamespacePrefix As String, _
    targetNamespaceUri As String, _
    keepInContent As Boolean _
)
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 AtomPub 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 targetName element exists.
  • targetNamespaceUri
    Type: System.String
    Specifies the namespace URI of the element, as string, specified by the targetName property.
  • keepInContent
    Type: System.Boolean
    A 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.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.