SyndicationFeed.SkipHours 屬性

定義

取得整數集合,指出摘要的 'skipHours' 元素中值集合。

public:
 property System::Collections::ObjectModel::Collection<int> ^ SkipHours { System::Collections::ObjectModel::Collection<int> ^ get(); };
public System.Collections.ObjectModel.Collection<int> SkipHours { get; }
member this.SkipHours : System.Collections.ObjectModel.Collection<int>
Public ReadOnly Property SkipHours As Collection(Of Integer)

屬性值

整數數位的集合,指出匯總工具應該略過更新摘要的時數。

範例

下列 XML 會說明 SkipHours 如何序列化為 RSS 2.0。

<item>
  <skipHours>
 <hour>0</hour>
 <hour>1</hour>
 <hour>2</hour>
 <hour>3</hour>
 <hour>4</hour>
 <hour>5</hour>
 <hour>6</hour>
 <hour>7</hour>
 <hour>18</hour>
 <hour>19</hour>
 <hour>20</hour>
 <hour>21</hour>
 <hour>22</hour>
 <hour>23</hour>
  </skipHours>
</item>

備註

序列化為 RSS 2.0 時, SkipHours 屬性會寫入 <skipHours> 集合中每個整數子項目。 有效的整數值介於 0 到 23 之間。

適用於