This documentation is archived and is not being maintained.

ContentLocator Class

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

System::Object
  System.Windows.Annotations::ContentLocatorBase
    System.Windows.Annotations::ContentLocator

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

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

The ContentLocator type exposes the following members.

  NameDescription
Public methodContentLocatorInitializes a new instance of the ContentLocator class.
Top

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

  NameDescription
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.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetSchemaAlways returns nullptr. See Annotations Schema for schema details.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (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.
Top

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

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, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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