Поделиться через


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

Новое соглашение.

Возвращаемое значение

Применяется к