Partager via


Operation.IsBoundBy(OperationBinding) Méthode

Définition

Retourne une valeur qui indique si le OperationBinding spécifié correspond à 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

Paramètres

operationBinding
OperationBinding

OperationBinding à vérifier pour déterminer s'il correspond à Operation.

Retours

Boolean

true si l'instance de Operation correspond au paramètre operationBinding ; sinon, false.

Exemples

L’exemple suivant illustre une utilisation classique de la IsBoundBy méthode.

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

S’applique à