ContentLocator.StartsWith(ContentLocator) メソッド

定義

指定した ContentLocatorPartContentLocator 要素の開始シーケンスが、この 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

戻り値

Boolean

この ContentLocatorPart 内の ContentLocator 要素の開始シーケンスが指定した locator の要素と一致する場合は true。それ以外の場合は false

例外

locatornullです。

注釈

StartsWithは、true指定された要素と一致する要素ContentLocatorContentLocatorPart開始シーケンスを返しますlocator

StartsWithは、false指定されたlocator要素に異なる要素、異なる順序、またはこれContentLocator以上の要素が含まれているContentLocatorPart場合に返されます。

適用対象

こちらもご覧ください