語言

ProviderConventionSetBuilder.ReplaceConvention 方法

定義

多載

ReplaceConvention<TConvention,TImplementation>(IList<TConvention>, TImplementation)

來源:
ProviderConventionSetBuilder.cs
來源:
ProviderConventionSetBuilder.cs
來源:
ProviderConventionSetBuilder.cs
來源:
ProviderConventionSetBuilder.cs

用衍生慣例取代現有慣例。

protected virtual bool ReplaceConvention<TConvention,TImplementation>(System.Collections.Generic.IList<TConvention> conventionsList, TImplementation newConvention) where TImplementation : TConvention;
abstract member ReplaceConvention : System.Collections.Generic.IList<'Convention> * 'Implementation -> bool
override this.ReplaceConvention : System.Collections.Generic.IList<'Convention> * 'Implementation -> bool
Protected Overridable Function ReplaceConvention(Of TConvention, TImplementation) (conventionsList As IList(Of TConvention), newConvention As TImplementation) As Boolean

類型參數

TConvention

被取代的慣例類型。

TImplementation

舊式的慣例。

參數

conventionsList
IList<TConvention>

現有約定實例清單,需掃描。

newConvention
TImplementation

新會議。

傳回

適用於

ReplaceConvention<TConvention,TImplementation>(List<TConvention>, TImplementation)

來源:
ProviderConventionSetBuilder.cs
來源:
ProviderConventionSetBuilder.cs
來源:
ProviderConventionSetBuilder.cs
來源:
ProviderConventionSetBuilder.cs
來源:
ProviderConventionSetBuilder.cs

用衍生慣例取代現有慣例。

protected virtual bool ReplaceConvention<TConvention,TImplementation>(System.Collections.Generic.List<TConvention> conventionsList, TImplementation newConvention) where TImplementation : TConvention;
abstract member ReplaceConvention : System.Collections.Generic.List<'Convention> * 'Implementation -> bool
override this.ReplaceConvention : System.Collections.Generic.List<'Convention> * 'Implementation -> bool
Protected Overridable Function ReplaceConvention(Of TConvention, TImplementation) (conventionsList As List(Of TConvention), newConvention As TImplementation) As Boolean

類型參數

TConvention

被取代的慣例類型。

TImplementation

舊式的慣例。

參數

conventionsList
List<TConvention>

現有約定實例清單,需掃描。

newConvention
TImplementation

新會議。

傳回

適用於