/// <summary> /// Create a Handover Error record based on the supplied error reason /// and error data, coming from higher level convenience types that this /// class will convert to the appropriate byte level representation. /// </summary> /// <remarks>This record is only valid within the Handover Select record.</remarks> /// <param name="errorReason">The reason why the handover request could not be /// processed by the target device. The value of this defines the possible /// contents and content length of the second (errorData) parameter.</param> /// <param name="errorData">Additional data for the error reason. The contents /// depend on the error reason, and is usually a time value.</param> public NdefHandoverErrorRecord(ErrorReasonTypes errorReason, uint errorData) : base(TypeNameFormatType.NfcRtd, BtHandoverErrorType) { ErrorReasonAsType = errorReason; ErrorDataAsNumber = errorData; }