ServiceDescription.RetrievalUrl Özellik

Tanım

Örneğin uygulandığı XML Web hizmetinin URL'sini ServiceDescription alır veya ayarlar.

C#
public string RetrievalUrl { get; set; }

Özellik Değeri

XML Web hizmetinin URL'si. Varsayılan değer boş bir dizedir ("").

Örnekler

C#
ServiceDescription myServiceDescription = new ServiceDescription();
myServiceDescription =
   ServiceDescription.Read("ServiceDescription_Extensions_Input_cs.wsdl");
Console.WriteLine(
   myServiceDescription.Bindings[1].Extensions[0].ToString());
SoapBinding mySoapBinding = new SoapBinding();
mySoapBinding.Required = true;
SoapBinding mySoapBinding1 = new SoapBinding();
mySoapBinding1.Required = false;
myServiceDescription.Extensions.Add(mySoapBinding);
myServiceDescription.Extensions.Add(mySoapBinding1);
foreach(ServiceDescriptionFormatExtension
   myServiceDescriptionFormatExtension
   in myServiceDescription.Extensions)
{
   Console.WriteLine("Required: " +
      myServiceDescriptionFormatExtension.Required);
}
myServiceDescription.Write(
   "ServiceDescription_Extensions_Output_cs.wsdl");
myServiceDescription.RetrievalUrl = "http://www.contoso.com/";
Console.WriteLine("Retrieval URL is: " +
   myServiceDescription.RetrievalUrl);

Şunlara uygulanır

Ürün Sürümler
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0