GraphPathSerializationDictionary.Remove 方法 (KeyValuePair<String, String>)
从 System.Collections.Generic.ICollection 中移除特定对象的第一个匹配项。
命名空间: Microsoft.VisualStudio.GraphModel
程序集: Microsoft.VisualStudio.GraphModel(在 Microsoft.VisualStudio.GraphModel.dll 中)
语法
声明
Public Function Remove ( _
item As KeyValuePair(Of String, String) _
) As Boolean
public bool Remove(
KeyValuePair<string, string> item
)
public:
virtual bool Remove(
KeyValuePair<String^, String^> item
) sealed
abstract Remove :
item:KeyValuePair<string, string> -> bool
override Remove :
item:KeyValuePair<string, string> -> bool
public final function Remove(
item : KeyValuePair<String, String>
) : boolean
参数
item
类型:KeyValuePair<String, String>要从 System.Collections.Generic.ICollection 中删除的对象。
返回值
类型:Boolean
如果成功从 System.Collections.Generic.ICollection 中删除了项,则为 true;否则为 false。如果在原始 System.Collections.Generic.ICollection 中找不到项,此方法也会返回 false。
实现
ICollection.Remove(UTP)
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。