XmlTypeAttribute.Namespace Propiedad

Definición

Obtiene o establece el espacio de nombres del tipo XML.

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

Valor de propiedad

Espacio de nombres del tipo XML.

Ejemplos

En el ejemplo siguiente se aplica a XmlTypeAttribute una clase al establecer la Namespace propiedad .


[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

Se aplica a