Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

UriSchemeKeyedCollection.SetItem Method

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.

ExceptionCondition
InvalidOperationException

The item URI is not an absolute URI.

ArgumentException

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft