ContentLocator.StartsWith(ContentLocator) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个值,该值指示指定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元素的序列匹配,则为 ;否则为 locator。false
例外
locator 是 null。
注解
StartsWith返回true此元素的ContentLocatorPart起始序列与指定ContentLocator元素locator中的元素匹配。
StartsWith如果false指定的元素包含locator不同、顺序不同或多于此ContentLocatorPart元素ContentLocator,则返回 。