Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
KeyValuePairs Property
Collapse the table of content
Expand the table of content

UriTemplateTable.KeyValuePairs Property

Gets a collection of key/value pairs that consist of UriTemplate objects and their associated data.

Namespace:  System
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

member KeyValuePairs : IList<KeyValuePair<UriTemplate, Object>> with get

Property Value

Type: System.Collections.Generic.IList(KeyValuePair(UriTemplate, Object))
A collection of key/value pairs that consist of UriTemplate objects and their associated data.

Each UriTemplate instance in the table has data associated with it. The KeyValuePairs property contains a collection of key value pairs where the key is a UriTemplate instance and the value is the data associated with the UriTemplate. Values can only be added to KeyValuePairs property prior to calling MakeReadOnly(Boolean) or Match(Uri) or MatchSingle(Uri) otherwise a NotSupportedException is thrown.

The following example shows how to access the KeyValuePairs property.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft