ServiceDescriptionCollection.GetPortType(XmlQualifiedName) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Searches the ServiceDescriptionCollection and returns the PortType with the specified name that is a member of one of the ServiceDescription instances contained in the collection.
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
Parameters
- name
- XmlQualifiedName
The XmlQualifiedName, passed by reference, whose Name property is shared by the PortType returned.
Returns
The PortType
with the specified name.
Exceptions
The specified PortType
is not a member of any ServiceDescription instances within the collection.
Examples
// 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)
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET