DiscoveryClientResult コンストラクター

定義

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

オーバーロード

DiscoveryClientResult()

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

DiscoveryClientResult(Type, String, String)

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

DiscoveryClientResult()

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

public:
 DiscoveryClientResult();
public DiscoveryClientResult ();
Public Sub New ()

// 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.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 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)

適用対象

DiscoveryClientResult(Type, String, String)

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

public:
 DiscoveryClientResult(Type ^ referenceType, System::String ^ url, System::String ^ filename);
public DiscoveryClientResult (Type referenceType, string url, string filename);
new System.Web.Services.Discovery.DiscoveryClientResult : Type * string * string -> System.Web.Services.Discovery.DiscoveryClientResult
Public Sub New (referenceType As Type, url As String, filename As String)

パラメーター

referenceType
Type

探索ドキュメントの参照の種類を表すクラス名。 ReferenceTypeName プロパティを設定します。

url
String

参照先の URL。 Url プロパティを設定します。

filename
String

参照が保存されているファイルの名前。 Filename プロパティを設定します。

// 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(
   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.
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)

適用対象