指定した CodeTypeDeclaration をコレクションから削除します。
Public Sub Remove( _
ByVal value As CodeTypeDeclaration _)
[C#]
public void Remove(CodeTypeDeclarationvalue);
[C++]
public: void Remove(CodeTypeDeclaration* value);
[JScript]
public function Remove(
value : CodeTypeDeclaration);
パラメータ
- value
コレクションから削除する CodeTypeDeclaration 。
例外
例外の種類 | 条件 |
---|---|
ArgumentException | 指定したオブジェクトがコレクション内で見つかりません。 |
使用例
' Removes the specified CodeTypeDeclaration from the collection.
Dim declaration As New CodeTypeDeclaration("TestType")
collection.Remove(declaration)
[C#]
// Removes the specified CodeTypeDeclaration from the collection.
CodeTypeDeclaration declaration = new CodeTypeDeclaration("TestType");
collection.Remove( declaration );
[C++]
// Removes the specified CodeTypeDeclaration from the collection.
CodeTypeDeclaration* declaration = new CodeTypeDeclaration(S"TestType");
collection->Remove( declaration );
[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン をクリックします。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
CodeTypeDeclarationCollection クラス | CodeTypeDeclarationCollection メンバ | System.CodeDom 名前空間