Partilhar via


Operation.IsBoundBy(OperationBinding) Método

Definição

Retorna um valor que indica se o OperationBinding especificado combina com o 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

Parâmetros

operationBinding
OperationBinding

Um OperationBinding a ser verificado para determinar se ele corresponde ao Operation.

Retornos

Boolean

true se a instância Operation corresponder ao parâmetro operationBinding; caso contrário, false.

Exemplos

O exemplo a seguir demonstra um uso típico do IsBoundBy método.

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())

Aplica-se a