EntityPropertyMappingAttribute.TargetNamespacePrefix Property

Gets a string value that, together with TargetNamespaceUri, specifies the namespace in which the TargetPathelement exists.

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

Syntax

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

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

Property Value

Type: System.String
String value that contains the target namespace prefix.

Remarks

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