ContentLocator.StartsWith(ContentLocator) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
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.