Поделиться через


OperationDescriptionCollection.Find Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Returns the first occurrence of an operation description with a specified name from the collection of operation descriptions.

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

Syntax

'Declaration
Public Function Find ( _
    name As String _
) As OperationDescription
public OperationDescription Find(
    string name
)

Parameters

Return Value

Type: System.ServiceModel.Description.OperationDescription
The first occurrence of an OperationDescription with the name specified or nulla null reference (Nothing in Visual Basic) if there is no operation with the name specified.

Remarks

This method returns the first occurrence of the OperationDescription in the collection with the name specified. If you need to find all of the OperationDescription objects in the collection use the FindAll(String) method instead.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.