Share via


ConventionSet.Remove 方法

定義

多載

Remove(Type)

移除指定型別的慣例。

Remove<TConvention>(IList<TConvention>, Type)

移除現有的慣例。

Remove<TConvention>(List<TConvention>, Type)

移除現有的慣例。

Remove(Type)

移除指定型別的慣例。

public virtual void Remove (Type conventionType);
abstract member Remove : Type -> unit
override this.Remove : Type -> unit
Public Overridable Sub Remove (conventionType As Type)

參數

conventionType
Type

要移除的慣例類型。

適用於

Remove<TConvention>(IList<TConvention>, Type)

移除現有的慣例。

public static bool Remove<TConvention> (System.Collections.Generic.IList<TConvention> conventionsList, Type existingConventionType);
static member Remove : System.Collections.Generic.IList<'Convention> * Type -> bool
Public Shared Function Remove(Of TConvention) (conventionsList As IList(Of TConvention), existingConventionType As Type) As Boolean

類型參數

TConvention

要移除的慣例類型。

參數

conventionsList
IList<TConvention>

要掃描的現有慣例實例清單。

existingConventionType
Type

現有慣例的類型。

傳回

true 如果已移除慣例,則為 。

適用於

Remove<TConvention>(List<TConvention>, Type)

移除現有的慣例。

public static bool Remove<TConvention> (System.Collections.Generic.List<TConvention> conventionsList, Type existingConventionType);
static member Remove : System.Collections.Generic.List<'Convention> * Type -> bool
Public Shared Function Remove(Of TConvention) (conventionsList As List(Of TConvention), existingConventionType As Type) As Boolean

類型參數

TConvention

要移除的慣例類型。

參數

conventionsList
List<TConvention>

要掃描的現有慣例實例清單。

existingConventionType
Type

現有慣例的類型。

傳回

true 如果已移除慣例,則為 。

適用於