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

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

作者:VB.NET开发    项目:System.DirectoryService   
Public Sub Add(ByVal key As Object, ByVal value As Object) Implements IDictionary.Add

    ' Add the new key/value pair even if this key already exists in the dictionary.
    If ItemsInUse = items.Length Then
        Throw New InvalidOperationException("The dictionary cannot hold any more items.")
    End If
    items(ItemsInUse) = New DictionaryEntry(key, value)
    ItemsInUse = ItemsInUse + 1
End Sub


问题


面经


文章

微信
公众号

扫码关注公众号