ConventionSet.Remove 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| 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 如果該慣例被取消。