Επεξεργασία

Κοινή χρήση μέσω


EntityPropertyMappingAttribute.TargetNamespaceUri Property

Definition

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

public:
 property System::String ^ TargetNamespaceUri { System::String ^ get(); };
public string TargetNamespaceUri { get; }
member this.TargetNamespaceUri : string
Public ReadOnly Property TargetNamespaceUri As String

Property Value

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.

Applies to