OperationCollection.Contains(Operation) Yöntem

Tanım

Belirtilen Operation öğesinin öğesinin üyesi OperationCollectionolup olmadığını belirten bir değer döndürür.

public:
 bool Contains(System::Web::Services::Description::Operation ^ operation);
public bool Contains (System.Web.Services.Description.Operation operation);
member this.Contains : System.Web.Services.Description.Operation -> bool
Public Function Contains (operation As Operation) As Boolean

Parametreler

operation
Operation

Operation Koleksiyon üyeliğinin denetlendiği yer.

Döndürülenler

trueöğesinin üyesiyseoperation, değilse, false.OperationCollection

Örnekler

Aşağıdaki örnekte yönteminin kullanımı gösterilmektedir Contains .

if ( myOperationCollection->Contains( myOperation ) == true )
{
   Console::WriteLine( "The index of the added 'myOperation' operation is : {0}", myOperationCollection->IndexOf( myOperation ) );
}
if(myOperationCollection.Contains(myOperation) == true)
{
   Console.WriteLine("The index of the added 'myOperation' " +
                     "operation is : " +
                     myOperationCollection.IndexOf(myOperation));
}
If myOperationCollection.Contains(myOperation) = True Then
   Console.WriteLine("The index of the added 'myOperation' " + _
            "operation is : " + _
            myOperationCollection.IndexOf(myOperation).ToString)
End If

Şunlara uygulanır