EntityPropertyMappingAttribute.TargetNamespaceUri Property

Gets a string value that specifies the namespace URI of the element specified by the TargetPath property.

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

Syntax

'Declaration
Public ReadOnly Property TargetNamespaceUri As String 
    Get
'Usage
Dim instance As EntityPropertyMappingAttribute 
Dim value As String 

value = instance.TargetNamespaceUri
public string TargetNamespaceUri { get; }
public:
property String^ TargetNamespaceUri {
    String^ get ();
}
member TargetNamespaceUri : string
function get TargetNamespaceUri () : String

Property Value

Type: System.String
String that contains the namespace URI.

Remarks

If mapping to non-syndication element/attribute, this property is the namespace for the target element/attribute.

If neither TargetNamespacePrefix nor TargetNamespaceUri are specified, the TargetPath 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.

See Also

Reference

EntityPropertyMappingAttribute Class

System.Data.Services.Common Namespace