ProviderConventionSetBuilder.ReplaceConvention 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
新约定。