Operation.IsBoundBy(OperationBinding) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个值,该值指示指定的 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。
返回
如果 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())