diff options
author | Hyihong Chae <hh.chae@samsung.com> | 2017-07-04 20:08:35 +0900 |
---|---|---|
committer | Hyihong Chae <hh.chae@samsung.com> | 2017-07-04 20:15:00 +0900 |
commit | aebfa1916f349ddac5fdf568aac4d90b3e950425 (patch) | |
tree | 17b904300e18bb0f64a0b4e21645c59cd702d501 /Tizen.Network.Nfc/Tizen.Network.Nfc/NfcNdefRecord.cs | |
parent | 2d9cf77811cc4d8c8b364a37524d031aca783d3f (diff) | |
download | nfc-91d9a63c0684d067adba807cde1f0df08970891e.tar.gz nfc-91d9a63c0684d067adba807cde1f0df08970891e.tar.bz2 nfc-91d9a63c0684d067adba807cde1f0df08970891e.zip |
added throw exception commentssubmit/tizen_4.0_unified/20170814.115522submit/tizen_4.0/20170828.100003submit/tizen_4.0/20170814.115522submit/tizen_4.0/20170811.094300submit/tizen/20170705.015855submit/tizen/20170705.012432submit/tizen/20170704.111729accepted/tizen/unified/20170705.162439accepted/tizen/4.0/unified/20170828.223320accepted/tizen/4.0/unified/20170816.014710tizen_4.0accepted/tizen_unifiedaccepted/tizen_4.0_unified
Change-Id: I50c7cd78bddd3b811c0903a3932e0cfbc97cfc9f
Signed-off-by: HyiHong Chae <hh.chae@samsung.com>
Diffstat (limited to 'Tizen.Network.Nfc/Tizen.Network.Nfc/NfcNdefRecord.cs')
-rwxr-xr-x | Tizen.Network.Nfc/Tizen.Network.Nfc/NfcNdefRecord.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcNdefRecord.cs b/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcNdefRecord.cs index 00b06e1..6387c79 100755 --- a/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcNdefRecord.cs +++ b/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcNdefRecord.cs @@ -209,6 +209,9 @@ namespace Tizen.Network.Nfc /// <param name="id">The record ID.</param> /// <param name="payload">The payload of this record.</param> /// <param name="paloadLength">The byte size of payload.</param> + /// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception> + /// <exception cref="ArgumentException">Thrown when method is failed due to an invalid parameter.</exception> + /// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception> public NfcNdefRecord(NfcRecordTypeNameFormat format, byte[] type, byte[] id, byte[] payload, uint paloadLength) { int ret = Interop.Nfc.NdefRecord.Create(out _recordHandle, (int)format, type, type.Length, id, id.Length, payload, paloadLength); @@ -227,6 +230,9 @@ namespace Tizen.Network.Nfc /// <param name="text">The encoded text.</param> /// <param name="languageCode">The language code string value followed by IANA[RFC 3066] (ex: en-US, ko-KR).</param> /// <param name="encode">The encoding type.</param> + /// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception> + /// <exception cref="ArgumentException">Thrown when method is failed due to an invalid parameter.</exception> + /// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception> public NfcNdefRecord(string text, string languageCode, NfcEncodeType encode) { int ret = Interop.Nfc.NdefRecord.CreateText(out _recordHandle, text, languageCode, (int)encode); @@ -243,6 +249,9 @@ namespace Tizen.Network.Nfc /// </summary> /// <since_tizen> 3 </since_tizen> /// <param name="uri">The URI string that will be stored in the payload.</param> + /// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception> + /// <exception cref="ArgumentException">Thrown when method is failed due to an invalid parameter.</exception> + /// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception> public NfcNdefRecord(string uri) { int ret = Interop.Nfc.NdefRecord.CreateUri(out _recordHandle, uri); @@ -261,6 +270,9 @@ namespace Tizen.Network.Nfc /// <param name="mimeType">The mime type [RFC 2046] (ex. text/plain, image/jpeg ) This value is stored in type field.</param> /// <param name="data">The data in form of bytes array.</param> /// <param name="dataSize">The size of data.</param> + /// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception> + /// <exception cref="ArgumentException">Thrown when method is failed due to an invalid parameter.</exception> + /// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception> public NfcNdefRecord(string mimeType, byte[] data, uint dataSize) { int ret = Interop.Nfc.NdefRecord.CreateMime(out _recordHandle, mimeType, data, dataSize); |