Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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)

public:
property IList<KeyValuePair<UriTemplate^, Object^>>^ KeyValuePairs {
	IList<KeyValuePair<UriTemplate^, Object^>>^ 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
Available since 3.5
Return to top
Show:
© 2017 Microsoft