PropertyCollection.System.Collections.IDictionary.Remove メソッド
アセンブリ: System.DirectoryServices (system.directoryservices.dll 内)

Private Sub System.Collections.IDictionary.Remove ( _ key As Object _ ) Implements IDictionary.Remove
private: virtual void System.Collections.IDictionary.Remove ( Object^ key ) sealed = IDictionary::Remove


Remove メソッドを実装する方法の例を次に示します。このコード例は、IDictionary クラスのトピックで取り上げているコード例の一部です。
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
public void Remove(object key) { if (key == null) throw new ArgumentNullException("key"); // Try to find the key in the DictionaryEntry array Int32 index; if (TryGetIndexOfKey(key, out index)) { // If the key is found, slide all the items up. Array.Copy(items, index + 1, items, index, ItemsInUse - index - 1); ItemsInUse--; } else { // If the key is not in the dictionary, just return. } }
public: virtual void Remove(Object^ key) { if (key == nullptr) { throw gcnew ArgumentNullException("key"); } // Try to find the key in the DictionaryEntry array int index; if (TryGetIndexOfKey(key, &index)) { // If the key is found, slide all the items down. Array::Copy(items, index + 1, items, index, itemsInUse - index - 1); itemsInUse--; } else { // If the key is not in the dictionary, just return. return; } }

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からPropertyCollection.System.Collections.IDictionary.Remove メソッドを検索する場合は、下記のリンクをクリックしてください。

- PropertyCollection.System.Collections.IDictionary.Remove メソッドのページへのリンク