EntityPropertyMappingAttribute Constructor (String^, String^, String^, String^, Boolean)
Creates an instance of the EntityPropertyMappingAttribute to map a property to a custom feed element.
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.
Available since 3.5
Silverlight
Available since 4.0