語言

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

屬性值

若集合為空,屬性值為空參考(Nothing in Visual Basic)。 如果集合包含一個值,屬性值即為該值。 如果集合包含多個值,屬性值等於這些值的一個陣列的複製品。

若設定此屬性,值會被加入 PropertyValueCollection。 將此屬性設為空參考Nothing()即可清除集合。

備註

要加入多個值,請將此屬性設為數值的陣列。

適用於