語言

CommaDelimitedStringCollection.Remove(String) 方法

定義

從集合中移除一個字串元素。

public:
 void Remove(System::String ^ value);
public void Remove(string value);
override this.Remove : string -> unit
Public Sub Remove (value As String)

參數

value
String

要拔掉的線。

範例

以下程式碼範例示範如何使用此 Remove 方法。 這個程式碼範例是為類別概述提供 CommaDelimitedStringCollection 的完整範例的一部分。

// Remove an element of the collection.
myStrCollection.Remove("userNameX");
' Remove an element of the collection.
myStrCollection.Remove("userNameX")

備註

此方法使屬性 IsModified 被設定為 true。

適用於