CodeTypeReferenceCollection.Remove(CodeTypeReference) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將指定的 CodeTypeReference 資料從集合中移除。
public:
void Remove(System::CodeDom::CodeTypeReference ^ value);
public void Remove(System.CodeDom.CodeTypeReference value);
member this.Remove : System.CodeDom.CodeTypeReference -> unit
Public Sub Remove (value As CodeTypeReference)
參數
- value
- CodeTypeReference
從收藏中移除。CodeTypeReference
例外狀況
指定的物件不在集合中。
範例
// Removes the specified CodeTypeReference from the collection.
CodeTypeReference reference = new CodeTypeReference(typeof(bool));
collection.Remove( reference );
' Removes the specified CodeTypeReference from the collection.
Dim reference As New CodeTypeReference(GetType(Boolean))
collection.Remove(reference)