Share via


PropertyValueCollection.Value 屬性

定義

取得或設定集合的值。

public:
 property System::Object ^ Value { System::Object ^ get(); void set(System::Object ^ value); };
public object Value { get; set; }
public object? Value { get; set; }
member this.Value : obj with get, set
Public Property Value As Object

屬性值

如果集合是空的,則屬性值為 null 參考 (在 Visual Basic 中為 Nothing)。 如果集合包含一個值,則屬性值即該值。 如果集合包含多個值,則屬性值等於這些值之陣列的複本。

如果設定這個屬性,則值會加入至 PropertyValueCollection。 將這個屬性設為 null 參考 (Nothing) 會清除集合。

備註

若要新增多個值,請將此屬性設定為值的陣列。

適用於