GraphPathSerializationDictionary.Remove 方法 (String)

從 System.Collections.Generic.ICollection 中移除第一個出現的指定物件。

命名空間:  Microsoft.VisualStudio.GraphModel
組件:  Microsoft.VisualStudio.GraphModel (在 Microsoft.VisualStudio.GraphModel.dll 中)

語法

'宣告
Public Function Remove ( _
    key As String _
) As Boolean
public bool Remove(
    string key
)
public:
virtual bool Remove(
    String^ key
) sealed
abstract Remove : 
        key:string -> bool 
override Remove : 
        key:string -> bool 
public final function Remove(
    key : String
) : boolean

參數

  • key
    型別:System.String
    要從 System.Collections.Generic.ICollection 中移除的項目名稱。

傳回值

型別:System.Boolean
如果從 System.Collections.Generic.ICollection 成功移除項目則為 true,否則為 false。如果在原始的 System.Collections.Generic.ICollection 中找不到該項目,這個方法也會傳回 false。

實作

IDictionary<TKey, TValue>.Remove(TKey)

.NET Framework 安全性

請參閱

參考

GraphPathSerializationDictionary 類別

Remove 多載

Microsoft.VisualStudio.GraphModel 命名空間