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)

適用対象