共用方式為


ProviderConventionSetBuilder.ReplaceConvention 方法

定義

多載

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

以衍生慣例取代現有的慣例。

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

以衍生慣例取代現有的慣例。

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

以衍生慣例取代現有的慣例。

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)

以衍生慣例取代現有的慣例。

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

新的慣例。

傳回

適用於