Editare

Partajați prin


EntityPropertyMappingAttribute.TargetNamespacePrefix Property

Definition

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

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

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