Επεξεργασία

Κοινή χρήση μέσω


SyndicationFeed.SkipHours Property

Definition

Gets a collection of integers indicating the set of values in the 'skipHours' element for the feed.

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)

Property Value

A collection of integer numbers indicating the hours where aggregators should skip updating the feed.

Examples

The following XML shows how SkipHours is serialized to 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>

Remarks

When serialized to RSS 2.0, the SkipHours property is written to a <skipHours> element with subelements for each integer in the collection. Valid integer values are between 0 and 23 inclusive.

Applies to