Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SetItem Method
Collapse the table of content
Expand the table of content

OperationDescriptionCollection.SetItem Method

Replaces the operation description element in the collection at the specified index.

Namespace:  System.ServiceModel.Description
Assemblies:   System.ServiceModel.Primitives (in System.ServiceModel.Primitives.dll)
  System.ServiceModel (in System.ServiceModel.dll)

protected override void SetItem(
	int index,
	OperationDescription item
)

Parameters

index
Type: System.Int32

The zero-based index at which item should be inserted.

item
Type: System.ServiceModel.Description.OperationDescription

The OperationDescription to set.

ExceptionCondition
ArgumentNullException

item is null.

This method is provided for the Windows Communication Foundation (WCF) system to do input validation and is not expected to be called by users.

.NET Framework

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
Show:
© 2015 Microsoft