다음을 통해 공유


ServiceDescription.Services 속성

정의

Service에 포함된 ServiceDescription 인스턴스의 컬렉션을 가져옵니다.

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

속성 값

ServiceCollection

서비스 설명에 포함된 서비스 인스턴스의 컬렉션입니다.

예제

// 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))

설명

이 속성에서 반환되는 ServiceCollection 요소는 WSDL(Web Services Description Language) definitions 루트 요소로 묶인 요소 목록에 service 해당합니다. WSDL에 대한 자세한 내용은 WSDL 사양을 참조하세요.

적용 대상