DiscoveryClientReferenceCollection.Add Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Aggiunge un oggetto DiscoveryReference a DiscoveryClientReferenceCollection.
Overload
Add(DiscoveryReference) |
Aggiunge un oggetto DiscoveryReference a DiscoveryClientReferenceCollection. |
Add(String, DiscoveryReference) |
Aggiunge un oggetto DiscoveryReference con il valore e l'URL specificati a DiscoveryClientReferenceCollection. |
Add(DiscoveryReference)
Aggiunge un oggetto DiscoveryReference a DiscoveryClientReferenceCollection.
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)
Parametri
- value
- DiscoveryReference
Oggetto DiscoveryReference da aggiungere a DiscoveryClientReferenceCollection.
Esempio
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)
Si applica a
Add(String, DiscoveryReference)
Aggiunge un oggetto DiscoveryReference con il valore e l'URL specificati a DiscoveryClientReferenceCollection.
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)
Parametri
- url
- String
URL relativo al riferimento da aggiungere a DiscoveryClientReferenceCollection.
- value
- DiscoveryReference
Oggetto DiscoveryReference da aggiungere a DiscoveryClientReferenceCollection.
Esempio
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)