ServiceDescriptionCollection.GetService(XmlQualifiedName) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
컬렉션에 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)