UriSchemeKeyedCollection.SetItem Method (Int32, Uri)

 

Replaces a URI at a specified location of the collection with a new URI.

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

protected override void SetItem(
	int index,
	Uri item
)

Parameters

index
Type: System.Int32

The zero-based index that specifies the insertion location for the URI in the collection.

item
Type: System.Uri

The Uri to be placed into the collection.

Exception Condition
InvalidOperationException

The item URI is not an absolute URI.

ArgumentException

item URI already contains a scheme name already in the collection.

.NET Framework
Available since 3.0
Return to top
Show: