Aracılığıyla paylaş


ServiceDescription.Services Özellik

Tanım

içinde ServiceDescriptionyer alan örneklerin Service koleksiyonunu alır.

public:
 property System::Web::Services::Description::ServiceCollection ^ Services { System::Web::Services::Description::ServiceCollection ^ get(); };
public System.Web.Services.Description.ServiceCollection Services { get; }
member this.Services : System.Web.Services.Description.ServiceCollection
Public ReadOnly Property Services As ServiceCollection

Özellik Değeri

Hizmet açıklamasında yer alan hizmet örnekleri koleksiyonu.

Örnekler

// Read a ServiceDescription from existing WSDL.
ServiceDescription^ myServiceDescription = ServiceDescription::Read( "Input_CS.wsdl" );
myServiceDescription->TargetNamespace = "http://tempuri.org/";

// Get the ServiceCollection of the ServiceDescription.
ServiceCollection^ myServiceCollection = myServiceDescription->Services;

// Remove the Service at index 0 of the collection.
myServiceCollection->Remove( myServiceDescription->Services[ 0 ] );
// Read a ServiceDescription from existing WSDL.
ServiceDescription myServiceDescription =
   ServiceDescription.Read("Input_CS.wsdl");
myServiceDescription.TargetNamespace = "http://tempuri.org/";

// Get the ServiceCollection of the ServiceDescription.
ServiceCollection myServiceCollection = myServiceDescription.Services;

// Remove the Service at index 0 of the collection.
myServiceCollection.Remove(myServiceDescription.Services[0]);
' Read a ServiceDescription from existing WSDL.
Dim myServiceDescription As ServiceDescription = _
   ServiceDescription.Read("Input.vb.wsdl")
myServiceDescription.TargetNamespace = "http://tempuri.org/"

' Get the ServiceCollection of the ServiceDescription.
Dim myServiceCollection As ServiceCollection = _
   myServiceDescription.Services

' Remove the Service at index 0 of the collection.
myServiceCollection.Remove(myServiceDescription.Services.Item(0))

Açıklamalar

ServiceCollection Bu özellik tarafından döndürülen, Web Hizmetleri Açıklama Dili (WSDL) definitions kök öğesi kapsamındaki öğelerin listesine service karşılık gelir. WSDL hakkında daha fazla bilgi için bkz. WSDL belirtimi.

Şunlara uygulanır