Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/vba/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows phone 8 我怎样才能知道标签(NFC)的大小(数据)有多大?_Windows Phone 8_Nfc - Fatal编程技术网

Windows phone 8 我怎样才能知道标签(NFC)的大小(数据)有多大?

Windows phone 8 我怎样才能知道标签(NFC)的大小(数据)有多大?,windows-phone-8,nfc,Windows Phone 8,Nfc,使用WindowsPhone8,我试图将数据写入NFC标签。但是,如果文本太大,它将失败(它不会写入,但也不会给出错误),我将尝试找出如何查询标记,以确定可以加载多少数据。 订阅消息 ProxDevice.SubscribeFormMessage(“WriteableTag”, OnTagDetect) 收到消息 专用无效OnTagDetect(ProximityDevice发送器, ProximityMessage(代理消息) ? { int writeableSize = Sy

使用WindowsPhone8,我试图将数据写入NFC标签。但是,如果文本太大,它将失败(它不会写入,但也不会给出错误),我将尝试找出如何查询标记,以确定可以加载多少数据。

  • 订阅消息
ProxDevice.SubscribeFormMessage(“WriteableTag”, OnTagDetect)

  • 收到消息
专用无效OnTagDetect(ProximityDevice发送器, ProximityMessage(代理消息)

?
{

   int writeableSize = System.BitConverter.ToInt32(message.Data.ToArray(), 0);

}