Operation.IsBoundBy(OperationBinding) Metodo

Definizione

Restituisce un valore che indica se l'oggetto OperationBinding specificato corrisponde all'oggetto 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

Parametri

operationBinding
OperationBinding

Oggetto OperationBinding da verificare pre determinare se corrisponde a Operation.

Restituisce

Boolean

Il valore è true se l'istanza Operation corrisponde al parametro operationBinding; altrimenti è false.

Esempio

Nell'esempio seguente viene illustrato un uso tipico del IsBoundBy metodo.

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

Si applica a