EntityPropertyMappingAttribute.TargetNamespaceUri 属性

定义

获取一个字符串值,该值指定由 TargetPath 属性指定的元素的命名空间 URI。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

属性值

String

包含命名空间 URI 的字符串。String that contains the namespace URI.

注解

如果映射到非联合元素/属性,则此属性是目标元素/属性的命名空间。If mapping to non-syndication element/attribute, this property is the namespace for the target element/attribute.

如果既 TargetNamespacePrefix TargetNamespaceUri 未指定也未指定,则 TargetPath 会将置于默认命名空间中。If neither TargetNamespacePrefix nor TargetNamespaceUri are specified, the TargetPath will be put in the default namespace. 如果 TargetNamespacePrefix 未指定,则自动生成前缀。If TargetNamespacePrefix is not specified, a prefix is autogenerated. 如果 TargetNamespacePrefix 指定了,但 TargetNamespaceUri 未指定,则构造时将引发异常。If TargetNamespacePrefix is specified, but TargetNamespaceUri is not specified, an exception is thrown at construction time.

适用于