UriTemplateTable.MakeReadOnly Method (Boolean)
Makes the UriTemplateTable read only.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
When themethod is called, one of the following types of validation occurs:
When UriTemplateTable checks to make sure the table contains no multiple structurally-equivalent templates. If it finds such templates, an exception is thrown. This type of validation is used in conjunction with MatchSingle(Uri) when you want to ensure only one template matches an incoming URI.is called passing in false, the
When UriTemplateTable. However, any query strings in the templates must not be ambiguous; identical query strings are allowed. This type of validation is used in conjunction with Match(Uri) when multiple template matches are allowed on the candidate URI.is called passing in true, multiple structurally-equivalent templates can be contained within a
Only the first call tois honored, subsequent calls are ignored without any exception being thrown.
Available since 3.5