XmlTypeAttribute.Namespace Eigenschap

Definitie

Hiermee haalt u de naamruimte van het XML-type op of stelt u deze in.

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

Waarde van eigenschap

De naamruimte van het XML-type.

Voorbeelden

In het volgende voorbeeld wordt de XmlTypeAttribute eigenschap toegepast op een klasse tijdens het instellen van de Namespace eigenschap.

[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

Van toepassing op