ServiceDescriptionCollection.GetMessage メソッド
ServiceDescriptionCollection を検索し、コレクションに含まれた ServiceDescription インスタンスのいずれかのメンバである、指定した名前を持つ Message を返します。
Public Function GetMessage( _
ByVal name As XmlQualifiedName _) As Message
[C#]
public Message GetMessage(XmlQualifiedNamename);
[C++]
public: Message* GetMessage(XmlQualifiedName* name);
[JScript]
public function GetMessage(
name : XmlQualifiedName) : Message;
パラメータ
- name
参照渡しされた XmlQualifiedName 。この Name プロパティは、返された Message で共有されます。
戻り値
Message 。
例外
例外の種類 | 条件 |
---|---|
Exception | 指定した Message は、コレクション内のどの ServiceDescription インスタンスのメンバでもありません。 |
使用例
' Construct an XML qualified name.
Dim myXmlQualifiedName As _
New XmlQualifiedName("AddSoapIn", "http://tempuri2.org/")
' Get the Message from the collection.
Dim myMessage As Message = myCollection.GetMessage(myXmlQualifiedName)
[C#]
// Construct an XML qualified name.
XmlQualifiedName myXmlQualifiedName =
new XmlQualifiedName("AddSoapIn", "http://tempuri2.org/");
// Get the Message from the collection.
Message myMessage = myCollection.GetMessage(myXmlQualifiedName);
[C++]
// Construct an XML qualified name.
XmlQualifiedName* myXmlQualifiedName =
new XmlQualifiedName(S"AddSoapIn", S"http://tempuri2.org/");
// Get the Message from the collection.
myCollection->GetMessage(myXmlQualifiedName);
[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン をクリックします。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
ServiceDescriptionCollection クラス | ServiceDescriptionCollection メンバ | System.Web.Services.Description 名前空間