WebReferenceCollection::Add Method (WebReference^)
.NET Framework (current version)
Appends a WebReference instance to the collection.
Assembly: System.Web.Services (in System.Web.Services.dll)
Parameters
- webReference
-
Type:
System.Web.Services.Description::WebReference^
The Web reference to append.
The index of the appended Web reference is greater by one than the index of the last appended Web reference. The index is zero based.
The following code example illustrates the use of this method. This code example is part of a larger example provided for the WebReferenceCollection class.
// Create a web reference collection. WebReferenceCollection references = new WebReferenceCollection(); references.Add(reference);
.NET Framework
Available since 2.0
Available since 2.0
Show: