ContentLocator.StartsWith(ContentLocator) Yöntem

Tanım

Belirtilen ContentLocator bir içindeki öğelerin başlangıç sırasının ContentLocatorPart bu ContentLocatoriçindekilerle aynı olup olmadığını gösteren bir değer döndürür.

public:
 bool StartsWith(System::Windows::Annotations::ContentLocator ^ locator);
public bool StartsWith (System.Windows.Annotations.ContentLocator locator);
member this.StartsWith : System.Windows.Annotations.ContentLocator -> bool
Public Function StartsWith (locator As ContentLocator) As Boolean

Parametreler

locator
ContentLocator

ContentLocator ile karşılaştıracak öğelerin listesiyle ContentLocatorPart ContentLocatorbirlikte.

Döndürülenler

Boolean

truebu ContentLocator içindeki öğelerin başlangıç sırası ContentLocatorPart belirtilen locatoriçindekilerle eşleşiyorsa; eşleşmiyorsa, false.

Özel durumlar

locator, null değeridir.

Açıklamalar

StartsWith, bu ContentLocator içindeki öğelerin belirtilen içindekilerle locatoreşleşen başlangıç sırasını ContentLocatorPart döndürürtrue.

StartsWithbelirtilen locator öğe farklı, farklı bir sırada veya bu ContentLocatoriçindekinden daha fazla öğe içeriyorsa ContentLocatorPart döndürürfalse.

Şunlara uygulanır

Ayrıca bkz.