Sdílet prostřednictvím


Operation.IsBoundBy(OperationBinding) Metoda

Definice

Vrátí hodnotu, která označuje, zda zadané OperationBinding shody s Operationhodnotou .

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

Parametry

operationBinding
OperationBinding

KontrolaOperationBinding, zda se má shodovat s Operation

Návraty

Boolean

trueOperation pokud instance odpovídá parametruoperationBinding; falsev opačném případě .

Příklady

Následující příklad ukazuje typické použití IsBoundBy metody.

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

Platí pro