OperationDescriptionCollection.Find(String) 方法

定义

从操作说明集合返回带有指定名称的操作说明。Returns an operation description with a specified name from the collection of operation descriptions.

public:
 System::ServiceModel::Description::OperationDescription ^ Find(System::String ^ name);
public System.ServiceModel.Description.OperationDescription Find (string name);
member this.Find : string -> System.ServiceModel.Description.OperationDescription
Public Function Find (name As String) As OperationDescription

参数

name
String

操作的名称。The name of the operation.

返回

OperationDescription

带有指定名称的 OperationDescriptionAn OperationDescription with the name specified.

注解

此方法可返回在操作说明集合中找到的第一个带有指定名称的 OperationDescriptionThis method returns the first occurrence of the OperationDescription in the collection with the name specified. 如果要查找该集合中的所有 OperationDescription 对象,则请使用 FindAll(String) 方法。If you need to find all of the OperationDescription objects in the collection use the FindAll(String) method instead.

适用于