Udostępnij za pośrednictwem


Metoda PropertyExpressionObservableCollection.Contains — (String)

Sprawdź, czy podana właściwość jest obecny w kolekcji

Przestrzeń nazw:  Microsoft.VisualStudio.TestTools.UITesting
Zestaw:  Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (w Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll)

Składnia

'Deklaracja
Public Function Contains ( _
    propertyName As String _
) As Boolean
public bool Contains(
    string propertyName
)
public:
bool Contains(
    String^ propertyName
)
member Contains : 
        propertyName:string -> bool
public function Contains(
    propertyName : String
) : boolean

Parametry

  • propertyName
    Typ: String

    Nazwa właściwości do znalezienia.

Wartość zwracana

Typ: Boolean
Wartość true, jeśli jest obecna.

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

PropertyExpressionObservableCollection Klasa

Przeciążenie Contains

Przestrzeń nazw Microsoft.VisualStudio.TestTools.UITesting