Edit

Share via


EntityPropertyMappingAttribute.TargetNamespacePrefix Property

Definition

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

public string TargetNamespacePrefix { get; }

Property Value

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.

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1