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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。