ContentLocator.StartsWith(ContentLocator) 方法

定义

返回一个值,该值指示指定ContentLocatorPart元素的ContentLocator起始序列是否与此中的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

参数

locator
ContentLocator

ContentLocator与此ContentLocatorPart进行比较的ContentLocator元素列表。

返回

true如果此元素的ContentLocatorPart起始序列与指定ContentLocator元素的序列匹配,则为 ;否则为 locatorfalse

例外

locatornull

注解

StartsWith返回true此元素的ContentLocatorPart起始序列与指定ContentLocator元素locator中的元素匹配。

StartsWith如果false指定的元素包含locator不同、顺序不同或多于此ContentLocatorPart元素ContentLocator,则返回 。

适用于

另请参阅