ServiceDescriptionCollection.GetPortType(XmlQualifiedName) 메서드

정의

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

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

매개 변수

name
XmlQualifiedName

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

반품

PortType 지정한 이름의 이름입니다.

예외

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

예제

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

// Get the PortType from the collection.
myCollection->GetPortType( myXmlQualifiedName );
// Construct an XML qualified name.
XmlQualifiedName myXmlQualifiedName =
   new XmlQualifiedName("MathServiceSoap","http://tempuri2.org/");
// Get the PortType from the collection.
PortType myPort = myCollection.GetPortType(myXmlQualifiedName);
' Construct an XML qualified name.
Dim myXmlQualifiedName As _
   New XmlQualifiedName("MathServiceSoap", "http://tempuri2.org/")
' Get the PortType from the collection.
Dim myPort As PortType = myCollection.GetPortType(myXmlQualifiedName)

적용 대상