ServiceDescriptionCollection.GetService(XmlQualifiedName) 메서드

정의

컬렉션에 ServiceDescriptionCollection 포함된 인스턴스 중 Service 하나의 멤버인 지정된 이름을 사용하여 검색하고 반환 ServiceDescription 합니다.

public:
 System::Web::Services::Description::Service ^ GetService(System::Xml::XmlQualifiedName ^ name);
public System.Web.Services.Description.Service GetService(System.Xml.XmlQualifiedName name);
member this.GetService : System.Xml.XmlQualifiedName -> System.Web.Services.Description.Service
Public Function GetService (name As XmlQualifiedName) As Service

매개 변수

name
XmlQualifiedName

XmlQualifiedName참조로 전달된 값으로, 반환 Name 된 속성이 해당 속성을 공유합니다Service.

반품

지정된 이름의 서비스입니다.

예외

지정된 Service 것이 컬렉션 내의 인스턴스 ServiceDescription 의 멤버가 아닙니다.

예제

// Construct an XML qualified name.
XmlQualifiedName^ myXmlQualifiedName =
   gcnew XmlQualifiedName( "MathService","http://tempuri2.org/" );

// Get the Service from the collection.
myCollection->GetService( myXmlQualifiedName );
// Construct an XML qualified name.
XmlQualifiedName myXmlQualifiedName =
   new XmlQualifiedName("MathService", "http://tempuri2.org/");

// Get the Service from the collection.
Service myService = myCollection.GetService(myXmlQualifiedName);
' Construct an XML qualified name.
Dim myXmlQualifiedName As _
   New XmlQualifiedName("MathService", "http://tempuri2.org/")

' Get the Service from the collection.
Dim myService As Service = myCollection.GetService(myXmlQualifiedName)

적용 대상