A class that represents an associative set of UriTemplate objects.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Thetype exposes the following members.
|UriTemplateTable()||Initializes a new instance of the class.|
|UriTemplateTable(Uri)||Initializes a new instance of the class with the specified base address.|
|UriTemplateTable(IEnumerable<KeyValuePair<UriTemplate, Object>>)||Initializes a new instance of the class with the specified collection of key/value pairs.|
|UriTemplateTable(Uri, IEnumerable<KeyValuePair<UriTemplate, Object>>)||Initializes a new instance of the class with the specified base address and collection of key/value pairs.|
|BaseAddress||Gets and sets the base address for the instance.|
|IsReadOnly||Gets a value that specifies whether the is read only.|
|KeyValuePairs||Gets a collection of key/value pairs that consist of UriTemplate objects and their associated data.|
|OriginalBaseAddress||Gets the original base address.|
|Equals(Object)||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as the default hash function. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MakeReadOnly||Makes the read only.|
|Match||Attempts to match a candidate Uri to the .|
|MatchSingle||Attempts to match a candidate Uri to the .|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
A is an associative set of UriTemplate objects bound to an object of the developer's choosing. It allows you to match candidate Uniform Resource Identifiers (URIs) against the templates in the set and retrieve the data associated with the matching templates. The contents of can be changed until the MakeReadOnly(Boolean) method is called, at which time one of following types of validation occurs:
When MakeReadOnly(Boolean) is called passing in false, the checks to make sure the table contains no multiple structurally-equivalent templates. If it finds such templates, it throws an exception. This type of validation is used in conjunction with MatchSingle(Uri) when you want to ensure only one template matches an incoming URI.
When MakeReadOnly(Boolean) is called passing in true, multiple structurally-equivalent templates can be contained within a . However, any query strings in the templates must not be ambiguous; identical query strings are allowed. For more information about ambiguous query strings, see UriTemplate and UriTemplateTable.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.