Operation.IsBoundBy(OperationBinding) 方法

定义

返回一个值,该值指示指定的 OperationBinding 是否与 Operation 匹配。

public:
 bool IsBoundBy(System::Web::Services::Description::OperationBinding ^ operationBinding);
public bool IsBoundBy (System.Web.Services.Description.OperationBinding operationBinding);
member this.IsBoundBy : System.Web.Services.Description.OperationBinding -> bool
Public Function IsBoundBy (operationBinding As OperationBinding) As Boolean

参数

operationBinding
OperationBinding

一个要对其进行检查以确定是否与 OperationBinding 匹配的 Operation

返回

Boolean

如果 Operation 实例与 operationBinding 参数匹配,则为 true;否则为 false

示例

以下示例演示了该方法的典型用法 IsBoundBy

Operation^ myPostOperation = gcnew Operation;
myPostOperation->Name = myOperationBinding->Name;
Console::WriteLine( "'Operation' instance uses 'OperationBinding': {0}",
   myPostOperation->IsBoundBy( myOperationBinding ) );
Operation myPostOperation = new Operation();
myPostOperation.Name = myOperationBinding.Name;
Console.WriteLine("'Operation' instance uses 'OperationBinding': "
   +myPostOperation.IsBoundBy(myOperationBinding));
Dim myPostOperation As New Operation()
myPostOperation.Name = myOperationBinding.Name
Console.WriteLine("'Operation' instance uses 'OperationBinding': " + _
                           myPostOperation.IsBoundBy(myOperationBinding).ToString())

适用于