Bagikan melalui


SoapServices.XmlNsForClrType Properti

Definisi

Mendapatkan awalan namespace XML untuk jenis runtime bahasa umum.

public:
 static property System::String ^ XmlNsForClrType { System::String ^ get(); };
public static string XmlNsForClrType { get; }
static member XmlNsForClrType : string
Public Shared ReadOnly Property XmlNsForClrType As String

Nilai Properti

Awalan namespace XML untuk jenis runtime bahasa umum.

Pengecualian

Pemanggil langsung tidak memiliki izin infrastruktur.

Contoh

Contoh kode berikut menunjukkan cara menggunakan properti ini. Contoh kode ini adalah bagian dari contoh yang lebih besar yang disediakan untuk SoapServices kelas .

// Print the XML namespace for the CLR types.
Console::WriteLine( L"The XML namespace for the CLR types "
L"is {0}.", SoapServices::XmlNsForClrType );
// Print the XML namespace for the CLR types.
Console.WriteLine(
    "The XML namespace for the CLR types " + 
    "is {0}.",
    SoapServices.XmlNsForClrType);

Keterangan

Protokol WSDL dan SOAP mengodekan kelas runtime bahasa umum ke dalam namespace XML. Properti saat ini menentukan format untuk namespace XML. Semua namespace XML untuk kelas runtime bahasa umum dimulai dengan String yang dikembalikan properti saat ini.

Berlaku untuk