Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ContentLocator Class

ContentLocator Class

Represents an ordered set of ContentLocatorPart elements that identify an item of content.

Namespace:  System.Windows.Annotations
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: Not mapped to an xmlns.

public sealed class ContentLocator : ContentLocatorBase, 
<ContentLocator .../>

The ContentLocator type exposes the following members.

Public methodContentLocatorInitializes a new instance of the ContentLocator class.

Public propertyPartsGets the collection of ContentLocatorPart elements that make up this ContentLocator.

Public methodCloneCreates a modifiable deep copy clone of this ContentLocator. (Overrides ContentLocatorBase.Clone().)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetSchemaAlways returns null. See Annotations Schema for schema details.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodReadXmlDeserializes the ContentLocator from a specified XmlReader.
Public methodStartsWithReturns a value that indicates whether the starting sequence of ContentLocatorPart elements in a specified ContentLocator are identical to those in this ContentLocator.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodWriteXmlSerializes the ContentLocator to a specified XmlWriter.

Explicit interface implemetationPrivate eventINotifyPropertyChanged.PropertyChangedInfrastructure. For a description of this member, see INotifyPropertyChanged.PropertyChanged. (Inherited from ContentLocatorBase.)

ContentLocatorPart elements defined in a ContentLocator provides a structured means to reference an external data item.

The process of resolving each ContentLocatorPart in sequence provides the context to resolve the next ContentLocatorPart.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2015 Microsoft