XmlTypeAttribute.Namespace Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the namespace of the XML type.
public:
property System::String ^ Namespace { System::String ^ get(); void set(System::String ^ value); };
public string Namespace { get; set; }
public string? Namespace { get; set; }
member this.Namespace : string with get, set
Public Property Namespace As String
Property Value
The namespace of the XML type.
Examples
The following example applies the XmlTypeAttribute to a class while setting the Namespace property.
[XmlType(Namespace="http://www.cpandl.com")]
public ref class Book{};
[XmlType(Namespace = "http://www.cpandl.com")]
public class Book
{
// Insert members for the class.
}
<XmlType(Namespace := "http://www.cpandl.com")> _
Public Class Book
' Insert members for the class.
End Class
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.