📄 cwp3.htm
字号:
<!-- saved from url=(0007)http:// -->
<HTML><HEAD><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><TITLE>WJ.MPR.Reader.Inventory</TITLE><LINK REL=STYLESHEET HREF="../CommentReport.css" TYPE="text/css"></HEAD><BODY topmargin=0 rightmargin=0 leftmargin=0 style="background-image: url(../titletile.jpg); background-repeat:repeat-x; background-position: 0 0;" ><DIV CLASS="PageHeading">WJ.MPR.Reader.Inventory Class</DIV><DIV CLASS="Description">
A strongly-typed collection of RFIDTag objects.
<P></DIV><IMG src="../GradLeft.jpg" width=7 height=378 alt="" border="0" style="position:absolute; left:10; top:18;z-Index:2"><IMG src="../GradTop.jpg" width=352 height=7 alt="" border="0" align="top" style="position:absolute; left:10; top:18; z-index:1"><DIV CLASS="Remarks"><SPAN CLASS="RemarkHdrX">Access: </SPAN>Public</DIV><DIV CLASS="Remarks"><SPAN CLASS="RemarkHdrX">Base Classes: </SPAN>CollectionBase</DIV><TABLE CLASS="InfoTable" cellpadding=0 cellspacing=0><TR height=20><TD width=20> </TD><TD valign=top align=left width=9 bgcolor="#cccc66"><IMG SRC="../graycorner.jpg" align=top></TD><TD CLASS="TableLightLabel" WIDTH=206>Members</TD><TD CLASS="TableLightLabel" >Description</TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP4.HTM" TARGET="CNTFRAME">this</A></TD><TD CLASS="TableLightDesc">
Gets or sets the element at the specified index.
This property is the indexer for the list.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP7.HTM" TARGET="CNTFRAME">Add</A></TD><TD CLASS="TableLightDesc">
Add a single value to the list.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP8.HTM" TARGET="CNTFRAME">IndexOf</A></TD><TD CLASS="TableLightDesc">
Determines the index of a specific element in the list.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP9.HTM" TARGET="CNTFRAME">Insert</A></TD><TD CLASS="TableLightDesc">
Inserts an element into the list at the specified Index.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP10.HTM" TARGET="CNTFRAME">Remove</A></TD><TD CLASS="TableLightDesc">
Removes the first occurrence of a specific value from the list.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP11.HTM" TARGET="CNTFRAME">ToArray</A></TD><TD CLASS="TableLightDesc">
Convert the list to an array.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP12.HTM" TARGET="CNTFRAME">Contains</A></TD><TD CLASS="TableLightDesc">
Determines whether the Inventory contains a specific RFIDTag.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP13.HTM" TARGET="CNTFRAME">Contains</A></TD><TD CLASS="TableLightDesc">
Determines whether the Inventory contains a RFIDTag with a specific TagID.
The TagID of each RFIDTag in the Inventory is compared to val.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP14.HTM" TARGET="CNTFRAME">Find</A></TD><TD CLASS="TableLightDesc">
Determines whether the Inventory contains a RFIDTag with a specific TagID.
The TagID of each Tag in the Inventory is compared to val.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP15.HTM" TARGET="CNTFRAME">Merge</A></TD><TD CLASS="TableLightDesc">
Combine two Inventories.
If newTags is null, false is returned.
Then newTags are added. Lastly Old RFIDTags are Expired.
If either adding or expiring changes this Inventory, true is returned.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP16.HTM" TARGET="CNTFRAME">Add</A></TD><TD CLASS="TableLightDesc">
Add an Inventory's RFIDTags to this Inventory.
This Inventory is searched for each RFIDTag in newTags,
if it is found, its LastRead timestamp is updated.
if it is not found, it is added.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP17.HTM" TARGET="CNTFRAME">persistTime</A></TD><TD CLASS="TableLightDesc">
The length of time that a RFIDTag can live in an inventory,
without being reread, before it is removed by ExpireTags().
If persistTime == TimeSpan.MaxValue, then RFIDTags are never removed.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP18.HTM" TARGET="CNTFRAME">ExpireTags</A></TD><TD CLASS="TableLightDesc">
The LastRead property of each RFIDTag in this Inventory
+ the persistTime is compared against the "now" parameter.
If the sum is less, then the RFIDTag is removed from this Inventory.
If persistTime == TimeSpan.MaxValue, then RFIDTags are never removed.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP19.HTM" TARGET="CNTFRAME">CountClass</A></TD><TD CLASS="TableLightDesc">
Returns the number of Class0 and Class1 RFIDTags in this Inventory.
<P></TD><TD width=20> </TD></TR></TABLE></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -