共用方式為


UriTemplateEquivalenceComparer 建構函式

定義

初始化 UriTemplateEquivalenceComparer 類別的新執行個體。

public:
 UriTemplateEquivalenceComparer();
public UriTemplateEquivalenceComparer ();
Public Sub New ()

範例

下列範例會示範如何呼叫這個類別的建構函式。

// Create a dictionary and use UriTemplateEquivalenceComparer as the comparer
Dictionary<UriTemplate, object> templates = new Dictionary<UriTemplate, object>(new UriTemplateEquivalenceComparer());
'Create a dictionary and use UriTemplateEquivalenceComparer as the comparer
Dim templates As Dictionary(Of UriTemplate, Object) = New Dictionary(Of UriTemplate, Object)(New UriTemplateEquivalenceComparer())

適用於