DiscoveryClientReferenceCollection.Add Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Adiciona um DiscoveryReference ao DiscoveryClientReferenceCollection.
Sobrecargas
Add(DiscoveryReference) |
Adiciona um DiscoveryReference ao DiscoveryClientReferenceCollection. |
Add(String, DiscoveryReference) |
Adiciona uma DiscoveryReference com a URL e o valor especificados à DiscoveryClientReferenceCollection. |
Add(DiscoveryReference)
Adiciona um DiscoveryReference ao 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)
Parâmetros
- value
- DiscoveryReference
O DiscoveryReference para adicionar ao DiscoveryClientReferenceCollection.
Exemplos
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)
Aplica-se a
Add(String, DiscoveryReference)
Adiciona uma DiscoveryReference com a URL e o valor especificados à 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)
Parâmetros
- url
- String
A URL da referência a ser adicionada à DiscoveryClientReferenceCollection.
- value
- DiscoveryReference
O DiscoveryReference para adicionar ao DiscoveryClientReferenceCollection.
Exemplos
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)