次の方法で共有


DiscoveryClientReferenceCollection.Add メソッド

定義

オーバーロード

Add(DiscoveryReference)

DiscoveryReferenceDiscoveryClientReferenceCollection に追加します。

Add(String, DiscoveryReference)

指定した URL と値を持つ DiscoveryReferenceDiscoveryClientReferenceCollection に追加します。

Add(DiscoveryReference)

public:
 void Add(System::Web::Services::Discovery::DiscoveryReference ^ value);
public void Add (System.Web.Services.Discovery.DiscoveryReference value);
member this.Add : System.Web.Services.Discovery.DiscoveryReference -> unit
Public Sub Add (value As DiscoveryReference)

パラメーター

DiscoveryClientReferenceCollection^ myDiscoveryClientReferenceCollection = gcnew DiscoveryClientReferenceCollection;
ContractReference^ myContractReference = gcnew ContractReference;
String^ myStringUrl1 = "http://www.contoso.com/service1.disco";
myContractReference->Ref = myStringUrl1;
myDiscoveryClientReferenceCollection->Add( myContractReference );
DiscoveryClientReferenceCollection myDiscoveryClientReferenceCollection =
    new DiscoveryClientReferenceCollection();

ContractReference myContractReference = new ContractReference();
string myStringUrl1 = "http://www.contoso.com/service1.disco";
myContractReference.Ref = myStringUrl1;
myDiscoveryClientReferenceCollection.Add(myContractReference);

Dim myDiscoveryClientReferenceCollection As _
    New DiscoveryClientReferenceCollection()

Dim myContractReference As New ContractReference()
Dim myStringUrl1 As String = "http://www.contoso.com/service1.disco"
myContractReference.Ref = myStringUrl1
myDiscoveryClientReferenceCollection.Add(myContractReference)

適用対象

Add(String, DiscoveryReference)

指定した URL と値を持つ DiscoveryReferenceDiscoveryClientReferenceCollection に追加します。

public:
 void Add(System::String ^ url, System::Web::Services::Discovery::DiscoveryReference ^ value);
public void Add (string url, System.Web.Services.Discovery.DiscoveryReference value);
member this.Add : string * System.Web.Services.Discovery.DiscoveryReference -> unit
Public Sub Add (url As String, value As DiscoveryReference)

パラメーター

url
String

DiscoveryClientReferenceCollection に追加する参照先の URL。

DiscoveryDocumentReference^ myDiscoveryDocumentReference = gcnew DiscoveryDocumentReference;
String^ myStringUrl = "http://www.contoso.com/service.disco";
myDiscoveryClientReferenceCollection->Add( myStringUrl, myDiscoveryDocumentReference );
DiscoveryDocumentReference myDiscoveryDocumentReference =
    new DiscoveryDocumentReference();
string myStringUrl = "http://www.contoso.com/service.disco";
myDiscoveryClientReferenceCollection.Add(myStringUrl,
    myDiscoveryDocumentReference);
Dim myDiscoveryDocumentReference As New DiscoveryDocumentReference()
Dim myStringUrl As String = "http://www.contoso.com/service.disco"
myDiscoveryClientReferenceCollection.Add(myStringUrl, _
    myDiscoveryDocumentReference)

適用対象