DiscoveryClientResultとは? わかりやすく解説

DiscoveryClientResult クラス

参照されるドキュメント内容を除く、探索され参照詳細表します。このクラス継承できません。

名前空間: System.Web.Services.Discovery
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文構文

Public NotInheritable Class
 DiscoveryClientResult
Dim instance As DiscoveryClientResult
public sealed class DiscoveryClientResult
public ref class DiscoveryClientResult sealed
public final class DiscoveryClientResult
public final class DiscoveryClientResult
解説解説
使用例使用例
Imports System
Imports System.Web.Services.Discovery

Public Class MyDiscoveryClientResult

    Shared Sub Main()
        Try
            Dim myDiscoveryClientProtocol As
 New DiscoveryClientProtocol()

            ' Get the collection holding DiscoveryClientResult objects.
            Dim myDiscoveryClientResultCollection As
 _
                DiscoveryClientResultCollection = _
                myDiscoveryClientProtocol.ReadAll("results.discomap")
            Console.WriteLine("The number of DiscoveryClientResult
 objects: " _
                & myDiscoveryClientResultCollection.Count.ToString())
            Console.WriteLine("Displaying the items in the collection:")

            ' Iterate through the collection and display the properties
            ' of each DiscoveryClientResult in it.
            Dim myDiscoveryClientResult As
 DiscoveryClientResult
            For Each myDiscoveryClientResult
 In myDiscoveryClientResultCollection
                Console.WriteLine( _
                    "Type of reference in the discovery document:
 " _
                    & myDiscoveryClientResult.ReferenceTypeName)
                Console.WriteLine("Url for the reference: "
 _
                    & myDiscoveryClientResult.Url)
                Console.WriteLine("File for saving the reference:
 " _
                    & myDiscoveryClientResult.Filename)
            Next myDiscoveryClientResult
        Catch e As Exception
            Console.WriteLine("Error is " + e.Message)
        End Try
    End Sub 'Main
End Class 'MyDiscoveryClientResult
using System;
using System.Web.Services.Discovery;
public class MyDiscoveryClientResult
{
    static void Main()
    {
        try
        {
            DiscoveryClientProtocol myDiscoveryClientProtocol = 
                new DiscoveryClientProtocol();

            // Get the collection holding DiscoveryClientResult objects.
            DiscoveryClientResultCollection myDiscoveryClientResultCollection = 
                myDiscoveryClientProtocol.ReadAll("results.discomap");
            Console.WriteLine("The number of DiscoveryClientResult objects:
 "
                + myDiscoveryClientResultCollection.Count);
            Console.WriteLine("Displaying the items in the
 collection:");

            // Iterate through the collection and display the properties
            // of each DiscoveryClientResult in it.
            foreach(DiscoveryClientResult myDiscoveryClientResult
 in 
                myDiscoveryClientResultCollection)
            {
                Console.WriteLine(
                    "Type of reference in the discovery document:
 "
                    + myDiscoveryClientResult.ReferenceTypeName);
                Console.WriteLine("Url for the reference:
 " 
                    + myDiscoveryClientResult.Url);
                Console.WriteLine("File for saving the reference:
 "
                    + myDiscoveryClientResult.Filename);
            }
        }
        catch(Exception e)
        {
            Console.WriteLine("Error is " + e.Message);
        }
    }
}
#using <System.Web.Services.dll>
#using <System.dll>

using namespace System;
using namespace System::Web::Services::Discovery;
int main()
{
   try
   {
      DiscoveryClientProtocol^ myDiscoveryClientProtocol = gcnew DiscoveryClientProtocol;
      
      // Get the collection holding DiscoveryClientResult objects.
      DiscoveryClientResultCollection^ myDiscoveryClientResultCollection = myDiscoveryClientProtocol->ReadAll(
 "results.discomap" );
      Console::WriteLine( "The number of DiscoveryClientResult objects: {0}",
 myDiscoveryClientResultCollection->Count );
      Console::WriteLine( "Displaying the items in the collection:"
 );
      
      // Iterate through the collection and display the properties
      // of each DiscoveryClientResult in it.
      System::Collections::IEnumerator^ myEnum = myDiscoveryClientResultCollection->GetEnumerator();
      while ( myEnum->MoveNext() )
      {
         DiscoveryClientResult^ myDiscoveryClientResult = safe_cast<DiscoveryClientResult^>(myEnum->Current);
         Console::WriteLine( "Type of reference in the discovery
 document: {0}", myDiscoveryClientResult->ReferenceTypeName );
         Console::WriteLine( "Url for the reference: {0}",
 myDiscoveryClientResult->Url );
         Console::WriteLine( "File for saving the reference:
 {0}", myDiscoveryClientResult->Filename );
      }
   }
   catch ( Exception^ e ) 
   {
      Console::WriteLine( "Error is {0}", e->Message );
   }

}

import System.*;
import System.Web.Services.Discovery.*;

public class MyDiscoveryClientResult
{
    public static void main(String[]
 args)
    {
        try {
            DiscoveryClientProtocol myDiscoveryClientProtocol = 
                new DiscoveryClientProtocol();

            // Get the collection holding DiscoveryClientResult objects.
            DiscoveryClientResultCollection myDiscoveryClientResultCollection =
                myDiscoveryClientProtocol.ReadAll("results.discomap");

            Console.WriteLine("The number of DiscoveryClientResult objects:
 "
                + myDiscoveryClientResultCollection.get_Count());
            Console.WriteLine("Displaying the items in the
 collection:");
            DiscoveryClientResult myDiscoveryClientResult = null;
            // Iterate through the collection and display the properties
            // of each DiscoveryClientResult in it.
            for (int iCtr = 0; iCtr < myDiscoveryClientResultCollection.
                get_Count(); iCtr++) {
                myDiscoveryClientResult = myDiscoveryClientResultCollection.
                    get_Item(iCtr);
                Console.WriteLine("Type of reference in the
 discovery " 
                    + "document: " 
                    + myDiscoveryClientResult.get_ReferenceTypeName());
                Console.WriteLine("Url for the reference:
 " 
                    + myDiscoveryClientResult.get_Url());
                Console.WriteLine("File for saving the reference:
 " 
                    + myDiscoveryClientResult.get_Filename());
            }
        }
        catch (System.Exception e) {
            Console.WriteLine("Error is " + e.get_Message());
        }
    } //main
} //MyDiscoveryClientResult
継承階層継承階層
System.Object
  System.Web.Services.Discovery.DiscoveryClientResult
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DiscoveryClientResult メンバ
System.Web.Services.Discovery 名前空間

DiscoveryClientResult コンストラクタ ()

DiscoveryClientResult クラス新しインスタンス初期化します。

名前空間: System.Web.Services.Discovery
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文構文

Dim instance As New DiscoveryClientResult
public DiscoveryClientResult ()
public:
DiscoveryClientResult ()
public DiscoveryClientResult ()
public function DiscoveryClientResult ()
使用例使用例
' Initialize a new instance of the DiscoveryClientResult class.
Dim myDiscoveryClientResult As New
 DiscoveryClientResult()

' Set the type of reference in the discovery document as 
' DiscoveryDocumentReference.
myDiscoveryClientResult.ReferenceTypeName = _
    "System.Web.Services.Discovery.DiscoveryDocumentReference"

' Set the URL for the reference.
myDiscoveryClientResult.Url = _
    "http://localhost/Discovery/Service1_vb.asmx?disco"

' Set the name of the file in which the reference is saved.
myDiscoveryClientResult.Filename = "Service1_vb.disco"

' Add the DiscoveryClientResult to the collection.
myDiscoveryClientResultCollection.Add(myDiscoveryClientResult)
// Initialize new instance of the DiscoveryClientResult class.
DiscoveryClientResult myDiscoveryClientResult =
    new DiscoveryClientResult();

// Set the type of reference in the discovery document as 
// DiscoveryDocumentReference.
myDiscoveryClientResult.ReferenceTypeName = 
    "System.Web.Services.Discovery.DiscoveryDocumentReference";

// Set the URL for the reference.
myDiscoveryClientResult.Url = 
    "http://localhost/Discovery/Service1_cs.asmx?disco";

// Set the name of the file in which the reference is saved.
myDiscoveryClientResult.Filename = "Service1_cs.disco";

// Add the DiscoveryClientResult to the collection.
myDiscoveryClientResultCollection.Add(myDiscoveryClientResult);
// Initialize new instance of the DiscoveryClientResult class.
DiscoveryClientResult^ myDiscoveryClientResult = gcnew DiscoveryClientResult;

// Set the type of reference in the discovery document as 
// DiscoveryDocumentReference.
myDiscoveryClientResult->ReferenceTypeName = "System.Web.Services.Discovery.DiscoveryDocumentReference";

// Set the URL for the reference.
myDiscoveryClientResult->Url = "http://localhost/Discovery/Service1_cs.asmx?disco";

// Set the name of the file in which the reference is saved.
myDiscoveryClientResult->Filename = "Service1_cs.disco";

// Add the DiscoveryClientResult to the collection.
myDiscoveryClientResultCollection->Add( myDiscoveryClientResult );
// Initialize new instance of the DiscoveryClientResult class.
DiscoveryClientResult myDiscoveryClientResult = 
    new DiscoveryClientResult();

// Set the type of reference in the discovery document as 
// DiscoveryDocumentReference.
myDiscoveryClientResult.set_ReferenceTypeName(
    "System.Web.Services.Discovery.DiscoveryDocumentReference");

// Set the URL for the reference.
myDiscoveryClientResult.set_Url(
    "http://localhost/Discovery/Service1_jsl.asmx?disco");

// Set the name of the file in which the reference is saved.
myDiscoveryClientResult.set_Filename("Service1_jsl.disco");

// Add the DiscoveryClientResult to the collection.
myDiscoveryClientResultCollection.Add(myDiscoveryClientResult);
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DiscoveryClientResult クラス
DiscoveryClientResult メンバ
System.Web.Services.Discovery 名前空間

DiscoveryClientResult コンストラクタ (Type, String, String)

DiscoveryClientResult クラス新しインスタンス初期化しReferenceTypeName プロパティreferenceType に、Url プロパティurl に、Filename プロパティfilename設定します

名前空間: System.Web.Services.Discovery
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文構文

使用例使用例
' Initialize a new instance of the DiscoveryClientResult class.
Dim myDiscoveryClientResult As New
 DiscoveryClientResult( _
   GetType(System.Web.Services.Discovery.DiscoveryDocumentReference),
 _
   "http://localhost/Discovery/Service1_vb.asmx?disco",
 _
   "Service1_vb.disco")

' Add the DiscoveryClientResult to the collection.
myDiscoveryClientResultCollection.Add(myDiscoveryClientResult)
// Initialize a new instance of the DiscoveryClientResult class.
DiscoveryClientResult myDiscoveryClientResult = 
   new DiscoveryClientResult(
   typeof(System.Web.Services.Discovery.DiscoveryDocumentReference),
   "http://localhost/Discovery/Service1_cs.asmx?disco",
   "Service1_cs.disco");

// Add the DiscoveryClientResult to the collection.
myDiscoveryClientResultCollection.Add(myDiscoveryClientResult);
// Initialize a new instance of the DiscoveryClientResult class.
DiscoveryClientResult^ myDiscoveryClientResult =
   gcnew DiscoveryClientResult( System::Web::Services::Discovery::DiscoveryDocumentReference::typeid
,
   "http://localhost/Discovery/Service1_cs.asmx?disco","Service1_cs.disco"
 );

// Add the DiscoveryClientResult to the collection.
myDiscoveryClientResultCollection->Add( myDiscoveryClientResult );
// Initialize a new instance of the DiscoveryClientResult class.
DiscoveryClientResult myDiscoveryClientResult =
    new DiscoveryClientResult(System.Web.Services.
    Discovery.DiscoveryDocumentReference.class.ToType(),
    "http://localhost/Discovery/Service1_jsl.asmx?disco",
    "Service1_jsl.disco");

// Add the DiscoveryClientResult to the collection.
myDiscoveryClientResultCollection.Add(myDiscoveryClientResult);
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DiscoveryClientResult クラス
DiscoveryClientResult メンバ
System.Web.Services.Discovery 名前空間

DiscoveryClientResult コンストラクタ

DiscoveryClientResult クラス新しインスタンス初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
DiscoveryClientResult () DiscoveryClientResult クラス新しインスタンス初期化します。
DiscoveryClientResult (Type, String, String) DiscoveryClientResult クラス新しインスタンス初期化し、ReferenceTypeName プロパティreferenceType に、Url プロパティurl に、Filename プロパティfilename設定します
参照参照

関連項目

DiscoveryClientResult クラス
DiscoveryClientResult メンバ
System.Web.Services.Discovery 名前空間

DiscoveryClientResult プロパティ


パブリック プロパティパブリック プロパティ

参照参照

関連項目

DiscoveryClientResult クラス
System.Web.Services.Discovery 名前空間

DiscoveryClientResult メソッド


DiscoveryClientResult メンバ

参照されるドキュメント内容を除く、探索され参照詳細表します。このクラス継承できません。

DiscoveryClientResult データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド DiscoveryClientResult オーバーロードされます。 DiscoveryClientResult クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

DiscoveryClientResult クラス
System.Web.Services.Discovery 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「DiscoveryClientResult」の関連用語

DiscoveryClientResultのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



DiscoveryClientResultのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS