XmlTypeAttribute.Namespace XmlTypeAttribute.Namespace XmlTypeAttribute.Namespace XmlTypeAttribute.Namespace Property

定義

XML 型の名前空間を取得または設定します。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; }
member this.Namespace : string with get, set
Public Property Namespace As String

プロパティ値

XML 型の名前空間。The namespace of the XML type.

次の例では、適用、XmlTypeAttributeクラスの設定中に、Namespaceプロパティ。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

適用対象