CommaDelimitedStringCollection.IsModified 属性

定义

获取一个值,该值指示集合是否已修改。Gets a value that specifies whether the collection has been modified.

public:
 property bool IsModified { bool get(); };
public bool IsModified { get; }
member this.IsModified : bool
Public ReadOnly Property IsModified As Boolean

属性值

Boolean

如果 CommaDelimitedStringCollection 已修改,则为 true;否则为 falsetrue if the CommaDelimitedStringCollection has been modified; otherwise, false.

示例

下面的代码示例演示如何使用 IsModified 属性。The following code example demonstrates how to use the IsModified property. 此代码示例是为类概述提供的更大示例的一部分 CommaDelimitedStringCollectionThis code example is part of a larger example provided for the CommaDelimitedStringCollection class overview.

// Call IsModified.
Console.WriteLine("IsModified: {0}",
  myStrCollection.IsModified);
' Call IsModified.
Console.WriteLine("IsModified: {0}", _
  myStrCollection.IsModified)

注解

IsModified属性在 true 调用了 AddClearInsert 或方法之后 RemoveThe IsModified property is true after the Add, Clear, Insert, or Remove method has been called. 此外, IsModified 属性在 true Item[] 属性用于修改字符串集合的元素之后。Also, the IsModified property is true after the Item[] property is used to modify an element of the string collection.

适用于