vb System.DirectoryServices.PropertyCollection.IDictionary.Remove类(方法)实例源码

下面列出了vb System.DirectoryServices.PropertyCollection.IDictionary.Remove 类(方法)源码代码实例,从而了解它的用法。

作者:VB.NET开发    项目:System.DirectoryService   
Public Sub Remove(ByVal key As Object) Implements IDictionary.Remove
    If key = Nothing Then
        Throw New ArgumentNullException("key")
    End If
    ' Try to find the key in the DictionaryEntry array
    Dim index As Integer
    If TryGetIndexOfKey(key, index) Then

        ' If the key is found, slide all the items up.
        Array.Copy(items, index + 1, items, index, (ItemsInUse - index) - 1)
        ItemsInUse = ItemsInUse - 1
    Else

        ' If the key is not in the dictionary, just return. 
    End If
End Sub


问题


面经


文章

微信
公众号

扫码关注公众号