Compartir a través de


MessageDescriptionCollection.Find Method

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

Finds and returns the first message description in a collection for a message with a specified action.

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

Syntax

'Declaration
Public Function Find ( _
    action As String _
) As MessageDescription
public MessageDescription Find(
    string action
)

Parameters

  • action
    Type: System.String
    The action of the message being found.

Return Value

Type: System.ServiceModel.Description.MessageDescription
The first MessageDescription from the collection whose message has the specified action and nulla null reference (Nothing in Visual Basic) if no matching action is found.

Remarks

If you need to find all of the MessageDescription objects in the collection that match the specified action, 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.