Partage via


ContentLocator.StartsWith(ContentLocator) Méthode

Définition

Retourne une valeur qui indique si la séquence initiale d'éléments ContentLocatorPart dans un ContentLocator spécifié est identique à celle de ce ContentLocator.

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

Paramètres

locator
ContentLocator

ContentLocator avec la liste d'éléments ContentLocatorPart à comparer avec ce ContentLocator.

Retours

Boolean

true si la séquence initiale d'éléments ContentLocatorPart de ce ContentLocator correspond à celle du locator spécifié ; sinon, false.

Exceptions

locator a la valeur null.

Remarques

StartsWith retourne true la séquence de départ d’éléments ContentLocatorPart dans ce qui ContentLocator correspond à ceux figurant dans le fichier spécifié locator.

StartsWith retourne false si le spécifié locator contient ContentLocatorPart des éléments différents, dans un ordre différent ou supérieur à celui-ci ContentLocator.

S’applique à

Voir aussi