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)

適用対象