Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WebReferenceCollection::Add Method (WebReference^)

 

Appends a WebReference instance to the collection.

Namespace:   System.Web.Services.Description
Assembly:  System.Web.Services (in System.Web.Services.dll)

public:
int Add(
	WebReference^ webReference
)

Parameters

webReference
Type: System.Web.Services.Description::WebReference^

The Web reference to append.

Return Value

Type: System::Int32

The index of the appended Web reference.

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
Return to top
Show:
© 2017 Microsoft